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,常用命令)