Skip to content

Instantly share code, notes, and snippets.

@otkrsk
Last active December 17, 2015 15:39
Show Gist options
  • Save otkrsk/5633072 to your computer and use it in GitHub Desktop.
Save otkrsk/5633072 to your computer and use it in GitHub Desktop.
Sometimes, files are deleted from a repo because they have become irrelevant. This is how you commit those changes for files that have been deleted.
git add -u
Additional info:
git add -A (stages All)
git add . (stages new and modified, without deleted)
git add -u (stages modified and deleted, without new)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment