Skip to content

Instantly share code, notes, and snippets.

@fish2000
Forked from rallygroup/git-addremove
Created March 14, 2025 22:13
Show Gist options
  • Save fish2000/3e6a576a1bd9ffb3084a1f15268b73a1 to your computer and use it in GitHub Desktop.
Save fish2000/3e6a576a1bd9ffb3084a1f15268b73a1 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