Re:Git tips to stop you getting fired
by darrickwiebe on Monday April 08, 2013 @10:34AM
(#5511897)
This command has a mistake in it:
it should be
[ Parent
| on HN ]
Re:Git tips to stop you getting fired
by philjackson on Monday April 08, 2013 @10:41AM
(#5511939)
Thanks, I've used an alias for checkout, "co", which I wrongly expanded when I wrote up the article. I've corrected it. Proofreading is another way not to get fired.
Re:Git tips to stop you getting fired
by joe8756438 on Monday April 08, 2013 @02:00PM
(#5513361)
Has anyone ever gotten fired for making a git or other version control "mistake?"
Most certainly. I've witnessed it. It was a really bad mistake though.
Looks like your probation period is over.
Shouldn't the $@ also be quoted? If one of the argument is a quoted file path with a space, the unquoted form is going to see multiple paths.
Also note that the 'git add' here is actually completely redundant - 'git checkout <filename>' automatically updates the index with the checked-out version of the file, in addition to the working tree.