首页 > 其他 > 详细

Git工具链接Gitlab仓库的方法

时间:2020-05-15 18:43:59      阅读:199      评论:0      收藏:0      [点我收藏+]

Create SSH link to Gitlab
1. open "Git Bash"
2. ssh-keygen -t rsa -C "name_of_gitlab_account"
3. "Enter" three times
4. C:\Users\Administrator\.ssh\ ========>> id_rsa and id_rsa.pub
5. copy the content of id_rsa.pub to SSH Keys in Gitlab.com

Base operation
1.git init
2.git remote add origin http://xxx@xx.git
3.git fetch
4.git branch branch_name origin/branch_name
5.git checkout branch_name
6.git add .
7.git commit -m “commit message”
8.git push origin branch_name

Make tags
1.git tag -a tag_name -m ‘tag message‘
2.git tag -l
3.git push origin tag_name

Git工具链接Gitlab仓库的方法

原文:https://www.cnblogs.com/zhangrui153169/p/12896088.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!