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:
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 :)
There are 2 alternatives - vote for the best!
It deletes all removed files, updates what was modified, and adds new files.
This command handles git rm'ing files that you've deleted.
-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.