Skip to content

Instantly share code, notes, and snippets.

@pepoviola
Created September 11, 2014 14:41
Show Gist options
  • Save pepoviola/0f7fbc59d08acbd878ce to your computer and use it in GitHub Desktop.
Save pepoviola/0f7fbc59d08acbd878ce to your computer and use it in GitHub Desktop.
git commands
git rm $(git ls-files --deleted)
This will ONLY remove the deleted files from the git.
It could be also be used for adding ONLY modified files also.
git add $(git ls-files --modified)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment