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

git 常用命令

时间:2015-04-27 18:31:49      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:常用命令   git   

  1. 上传代码至Github http://blog.csdn.net/zwhlxl/article/details/45046505

  2. 五步git操作搞定Github中fork的项目与原作者同步 http://blog.csdn.net/zwhlxl/article/details/45110587

  3. Git error (failed to push some refs)解决 http://blog.csdn.net/zwhlxl/article/details/45044181

  4. 撤销上一次提交

git reset --hard commit_id
git push origin HEAD --force

commit_id 为每次commit的SHA1值. 可以用git log 看到,也可以在页面上commit标签页里找到.

git 常用命令

标签:常用命令   git   

原文地址:http://blog.csdn.net/zwhlxl/article/details/45311921

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