commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
It deletes all removed files, updates what was modified, and adds new files.
There are 2 alternatives - vote for the best!
This command handles git rm'ing files that you've deleted.
I've used technicalpickles command a lot, but this one handles whitespaces in filenames. I'm sure you want to create an alias for it :)
-u tells git to automatically stage all changes to files in the index (eg. deleted and modified files).
If you can do better, submit your command here.
You must be signed in to comment.