現在想到什麼都來 PO 一下 XD
https://github.com/so-fancy/diff-so-fancy
拿來幫你把 git diff 變漂亮的東東
// install $ brew install diff-so-fancy // Setup $ git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX" // make it more fancier $ git config --global color.diff-highlight.oldNormal "red bold" $ git config --global color.diff-highlight.oldHighlight "red bold 52" $ git config --global color.diff-highlight.newNormal "green bold" $ git config --global color.diff-highlight.newHighlight "green bold 22"
git update-index --assume-unchanged <file> If there’s a remote server, also do:
git rm --cached <file>
failed log:
$sudo brew update error: Your local changes to the following files would be overwritten by merge: Library/Aliases/gperftools Library/Aliases/hashdeep Library/Aliases/htop Library/Aliases/nodejs Library/Aliases/ocio Library/Aliases/oiio .... error: The following untracked working tree files would be overwritten by merge: Library/Aliases/gperftools Library/Aliases/hashdeep Library/Aliases/htop Library/Aliases/nodejs Library/Aliases/ocio Library/Aliases/oiio .... Aborting Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master Solution:
$ cd /usr/local $ git fetch origin $ git reset --hard origin/master reference [read]
這次只貼 Reference, 因為我也還沒看XD
* http://people.debian.org.tw/~chihchun/2009/01/05/understand-git-in-one-hour/
文中所說的影片:
* http://gitcasts.com/