Added two chapters
[gitmagic/dustin.git] / grandmaster.txt
blobd44baa4c324ced200892d83ffc5525f1848c403e
1 = Git Grandmastery =
3 This pretentiously named page is my dumping ground for uncategorized Git tricks.
5 == Building On Git ==
7 TODO
9 == Git Over HTTP ==
11 TODO
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