Currently, when I want to make a commit and push the content to the remote Git repository, I use:
git add . //<--notice the dot here
git commit -m "some commit message"
git push
I have seen MANY people use git add -A
instead. I read the difference between, .
and -A
, but I am not clear with it.
So are these two commands the same?
If not, when should one use git add .
and when git add -A
?