Skip to content

Instantly share code, notes, and snippets.

@weeksdev
Created June 19, 2015 13:49
Show Gist options
  • Select an option

  • Save weeksdev/c4b2c02fd242240f0840 to your computer and use it in GitHub Desktop.

Select an option

Save weeksdev/c4b2c02fd242240f0840 to your computer and use it in GitHub Desktop.
GitCommands

tell you some files changes

git status

now revert back to the head with the changes that weren't commited

git checkout path/to/file.txt

run git status again and make sure there is nothing left

git status

now you can pull from origin

git pull origin master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment