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
Try "git add ." instead.
git add .
Also, it works for me (on Linux):
$ git init $ echo foo > .gitignore $ echo foo > foo $ echo bar > bar $ git add -v * The following paths are ignored by one of your .gitignore files: foo Use -f if you really want to add them. fatal: no files added