Skip to content

Instantly share code, notes, and snippets.

@inailuy
Last active December 15, 2015 03:39
Show Gist options
  • Save inailuy/5196290 to your computer and use it in GitHub Desktop.
Save inailuy/5196290 to your computer and use it in GitHub Desktop.
Conflicts with Remote, dont care about local changes, discard changes -> pull remote
git stash save --keep-index
git stash drop
git push origin newBranch // pushing local branch to remote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment