Is it redundant to run git add . and then git commit -am "commit message"?
git add .
git commit -am "commit message"
Can I just run git add . and then git commit -m "commit message" or, alternatively, just git commit -am "commit message"?
git commit -m "commit message"
Git add + git commit -m will just commit those files you've added (new and previously tracked), but git commit -am will commit all changes on tracked files, but it doesn't add new files.
Git add
git commit -m
git commit -am
1.4m articles
1.4m replys
5 comments
57.0k users