Skip to content

Instantly share code, notes, and snippets.

@bahostetterlewis
Last active December 17, 2015 00:19
Show Gist options
  • Save bahostetterlewis/5519901 to your computer and use it in GitHub Desktop.
Save bahostetterlewis/5519901 to your computer and use it in GitHub Desktop.
useful git shit
git config --global alias.ignorechanges = update-index --assume-unchanged
git config --global alias.noticechanges = update-index --no-assume-unchanged
git log --pretty=oneline
git log --graph --pretty=oneline
git diff <branch1> <branch2> --word-diff
git checkout --theirs -- <file> # key here is the -- says end of params
git checkout --ours -- <file> # This solves simple conflicts
git pull <remote> +branch:mybranch #overwrite my changes with those on the remove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment