Is there a way to stage or unstage (git add / git rm) files only based on what was the type of modification?
Like :
- add/rm only files that are deleted
- add/rm only files that are new
- add/rm only files that are modified
- add/rm only files that are renamed
Based on the other linked answer you can do (in bash)
to e.g. only add deleted files.
You can use the other diff-filter options for modified, new, renamed files etc. And of course you can swap out
git addforgit resetetc.