xichao1980

导航

git 笔记

查看某个提交的修改:git show commitID

查看某个提交修改涉及的文件:git show commitID --oneline --name-status

清理掉没有入库的文件,并把修改了文件回退:git clean -xdf && git reset --hard

更新到远端最新提交:

  方法一:git pull rebase origin/xxxx

  方法二:git remote update; git rebase origin/xxx

  方法三:git fetch; git rebase origin/xxx

 

posted on 2016-03-01 11:24  xichao1980  阅读(79)  评论(0编辑  收藏  举报