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

git 常用命令

时间:2020-06-06 11:17:37      阅读:72      评论:0      收藏:0      [点我收藏+]

标签:--   tags   stash   pop   add   stat   版本号   sof   修改   

--提交代码

git push origin HEAD:refs/for/dev-safe%r=xxx.xx@xxx.xx.xx

 

回退已经提交的代码: git reset --soft HEAD~

git stash
git pull
git stash pop

 

代码没审批之前追加修改和提交
git status
git add .
git commit --amend
git push origin HEAD:refs/for/dev-safe%r=xxx.xx@xxx.xx.xx

打tag
git tag 版本号
git push origin 版本号

删除tag
git tag -d 版本号
git push origin :refs/tags/版本号

 

git 常用命令

标签:--   tags   stash   pop   add   stat   版本号   sof   修改   

原文地址:https://www.cnblogs.com/jtcr/p/13053733.html

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