Skip to content

Instantly share code, notes, and snippets.

@fish2000
Forked from rallygroup/git-addremove
Last active March 14, 2025 22:13
Show Gist options
  • Save fish2000/9f36f99686d0f278162b7219011c087c to your computer and use it in GitHub Desktop.
Save fish2000/9f36f99686d0f278162b7219011c087c to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# git-addremove
git add -A
git ls-files --deleted | xargs git rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment