Skip to content

Instantly share code, notes, and snippets.

@sahilseth
Last active November 13, 2015 17:27
Show Gist options
  • Select an option

  • Save sahilseth/53c7ec6198c35de7b11d to your computer and use it in GitHub Desktop.

Select an option

Save sahilseth/53c7ec6198c35de7b11d to your computer and use it in GitHub Desktop.
My list of git commands
# clone
git clone source
# add changes to be committed
git add .
git commit -m "my message"
git push
# get a list of ignored files
git ls-files --others -i --exclude-standard
git ls-files --others -i --exclude-from=.git/info/exclude
# remove all changes to code
git stash
# that was a mistake get all the changes back
git stash pop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment