When I use command git add -u . git still doesn’t update untracked files.
Works only when I specify them by path, git add -- filepath
What could it be?
When I use command git add -u . git still doesn’t update untracked files.
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.
untracked files cannot be updated. they are not tracked in the first place.
you need to add untracked files. to do that most commonly you’d use:
all there doesnt mean every file, but every file that doesn’t match an entry in the .gitignore file.
from the man page: