Git工具链接Gitlab仓库的方法

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://
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

相关推荐