3 This pretentiously named page is my dumping ground for uncategorized Git tricks.
13 == Commit What Changed ==
15 Telling Git when you've added, deleted and renamed files gets tedious. Instead, try:
17 $ git-ls-files -d -m -o | xargs git-update-index --add --remove
19 and Git will look at the files in the current directory and work everything out for itself.
21 You might want it to ignore particular files:
23 $ git-ls-files -d -m -o -x *.tmp | xargs git-update-index --add --remove
25 If you have a big list of directories and files that should never be version controlled, type them into a separate file named "ignore" and run:
27 $ git-ls-files -d -m -o -X ignore | xargs git-update-index --add --remove