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://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
作者:张瑞153169
-------------------------------------------
个性签名:独学而无友,则孤陋而寡闻。做一个灵魂有趣的人!
如果觉得这篇文章对你有小小的帮助的话,记得在右下角点个“推荐”哦,在此感谢!

浙公网安备 33010602011771号