I've got a git repository, call it myscripts/. Within myscripts/ are subdirectories perl/, python/, and ruby/. For some reason, when I edit code in one of the subdirectories, Git forgets that the subdirectory is part of the repository.
$ cd myscripts/
$ cd perl/
$ vi hello.pl
...
$ git commit -a
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# ./
$ git add .
$ git commit -a
I have to do this over and over, and I don't know why.
git addto specify what to include in the commit. You can create a commit which includes all changes to tracked files using the commandgit commit -a, which is being used in this question. – heavyd Nov 22 '11 at 16:25