Re:Simple Daily Git Workflow at Gameplan (Cheatsheet included)
by gonepostal on Tuesday April 13, 2010 @11:04PM
(#1264002)
The -a switch for the commit command will only add changes from all files listed in the index. "git add ." will add changed files that are in the index and those that are not. So they are not redundant commands.
[ Parent
| on HN ]
Re:Simple Daily Git Workflow at Gameplan (Cheatsheet included)
by pyre on Tuesday April 13, 2010 @11:56PM
(#1264081)
Huh? They are redundant if you run them in succession. If you've just added all changes to the index, there is no need to use the -a option to commit unstaged changes to files in the index.