I have versioned my folder with
git init
git add .
git commit -m 'Initial commit'
Should I do
git add <newfile>
for each new file I create in .? Doesn’t adding entire folder mean that all new files tracked automatically?
Thanks.
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.
You need to
git addnew files that you want to track.git add .only adds what is currently in there at the time you call it. That means that when you make some changes and add some files, then you can again dogit add .in the project root and it will add all those changes.(Also check out the “interactive” add mode (
git add -i). It’s really practical.)