Skip to content

Instantly share code, notes, and snippets.

@Ddedalus
Created June 28, 2018 10:46
Show Gist options
  • Select an option

  • Save Ddedalus/dcc3e8d82be73d3d50daf86dc8e4a548 to your computer and use it in GitHub Desktop.

Select an option

Save Ddedalus/dcc3e8d82be73d3d50daf86dc8e4a548 to your computer and use it in GitHub Desktop.
discard unstaged git changes
git checkout filename
git checkout -- filename # if it happend to clash with branch name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment