码迷,mamicode.com
首页 > 其他好文 > 详细

Git工具链接Gitlab仓库的方法

时间:2020-05-15 18:16:57      阅读:108      评论:0      收藏:0      [点我收藏+]

标签:opera   git bash   time   operation   ===   ash   key   user   ssh key   

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仓库的方法

标签:opera   git bash   time   operation   ===   ash   key   user   ssh key   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!