Skip to content

Instantly share code, notes, and snippets.

@lukemartin
Created July 7, 2011 19:40
Show Gist options
  • Save lukemartin/1070357 to your computer and use it in GitHub Desktop.
Save lukemartin/1070357 to your computer and use it in GitHub Desktop.
Git: cheat sheet
# Remove deleted files from repo
$ git add -u
# Delete untracked files from local disk
$ git clean -f
# Amend previous commit (only unpushed commits)
$ git commit --amend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment