I\'m trying to create a new git repository from existing folder. I\'ve created a .gitignore file in the root of the folder. But if I say
.gitignore
git add
Comment line as the first line of the file is critical! I spent considerable time trying to exclude files only to find that GIT was ignoring the first line in the ignore file.