I have really been confused by this one. After pulling from a repo, I modified the files and attempted to add and commit them. However after adding the two files with git add [file] as well as git add ., git add -A, and git add -u, I always get this output:
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# ../.DS_Store
# .DS_Store
nothing added to commit but untracked files present (use "git add" to track)
Why doesn’t git add my files?
If you are editing existing files ( as in already tracked files ), after editing ( and saving ) them, do a
git status– you must see a line saying they have been modified (Changes not staged for commit).If that doesn’t happen, you are not actually editing / saving the files. Make sure you are saving them.