Skip to content

Instantly share code, notes, and snippets.

@AlexTape
Last active September 2, 2015 13:49
Show Gist options
  • Save AlexTape/f7748afac48f228f1a8d to your computer and use it in GitHub Desktop.
Save AlexTape/f7748afac48f228f1a8d to your computer and use it in GitHub Desktop.
Remove all deleted files from commit
git rm $(git ls-files --deleted)
git add $(git ls-files --modified)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment