I’m finding myself using it each time before a commit. Is it right? If so, it should be the same command…
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s
git commit -awhich is likegit add -u— it adds all modified files, but it does not add untracked files, in contrast togit add ., which adds both tracked and untracked files (not including deletions), provided that they contain modifications.See Difference between "git add -A" and "git add ."
But yes, in most workflows, you will either
git addbefore yougit commit, or you will mostly usegit commit -a.