Ignore changes: git update-index --assume-unchanged
Un-ignore changes:git update-index --no-assume-unchanged
[source]
Ignore changes: git update-index --assume-unchanged
Un-ignore changes:git update-index --no-assume-unchanged
[source]
git checkout --ours index.html
git checkout --theirs template.html
To start tracking changes to the file again, run:git update-index --assume-unchanged filename
git update-index --no-assume-unchanged filenamesource: http://gitready.com/intermediate/2009/02/18/temporarily-ignoring-files.html
To revert a file with uncommitted changes to the current version in the repo do:
git checkout -- filename
source: http://norbauer.com/notebooks/code/notes/git-revert-reset-a-single-file
git diff --name-only foo bar
git show --pretty="format:" --name-only *commit-sha*
Host github.com
User git
Hostname github.com
PreferredAuthentications publickey
IdentityFile path-to-private-key
eval `ssh-agent`; ssh-add ~/.ssh/github_rsa