DEV Community

Discussion on: 5 Great Git CLI Shortcuts

Collapse
 
jkkgbe profile image
Jakub

git add . is 'all commit' only if you have changes on the current path. If you have changes in e.g. sibling dir it won't work as you'd have to go up the path which is ... For a true 'all commit' use git add -A.

Collapse
 
syntaxseed profile image
SyntaxSeed (Sherri W) • Edited

Thanks!
I do always run this from project root so I'm ok. But I think I'll switch to your suggestion! :)