Skip to content

Instantly share code, notes, and snippets.

@baijian
Last active January 4, 2016 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baijian/8662288 to your computer and use it in GitHub Desktop.
Save baijian/8662288 to your computer and use it in GitHub Desktop.
rebase基本用法:
http://git-scm.com/book/en/Git-Branching-Rebasing
git co xxx
git rebase master : patch modification of xxx on base of master branch
rebase远程分支:
http://stackoverflow.com/questions/7929369/how-to-rebase-local-branch-with-remote-master
1.
>git fetch origin
>git rebase origin/master
2.
>git pull --rebase origin/master
### ignore
Fortunately GIT has a very easy solution for this, just run the following command on the file or path you want to ignore the changes of:
git update-index --assume-unchanged <file>
If you wanna start tracking changes again run the following command:
git update-index --no-assume-unchanged <file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment