Skip to content

Instantly share code, notes, and snippets.

@mightydes
Last active August 29, 2015 13:57
Show Gist options
  • Save mightydes/9369623 to your computer and use it in GitHub Desktop.
Save mightydes/9369623 to your computer and use it in GitHub Desktop.
Git
git rm -r --cached /
git stash
git checkout -b other-branch
git stash pop
git diff --name-only --diff-filter=U
git checkout --ours -- <paths>
# or
git checkout --theirs -- <paths>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment