DEV Community

Discussion on: How does one git good?

Collapse
 
fluffynuts profile image
Davyd McColl

good article; a suggestion for git add though:

git add . adds all new and changed files from the current folder downward. If you'd like to do that for the entire repo, from any folder, try: git add -A :/, which means "hey git, please add all new and modified files, as well as deleted files (-A), for the next commit, for this entire repository (:/)". It's my goto (:

Collapse
 
danimal92 profile image
Daniel Zaltsman

Ahhh, interesting. Thanks for the feedback!