I've a .gitignore.gitignore file at the root of my repo. The .gitignore.gitignore file has the following pattern to exclude the compiled pythonPython files and that is the only line in the file.
*.pyc
*.pyc
Now when i do the following at the root of the repo.
- git init
- git add .
- git status
git init
git add .
git status
It shows that it still tracks the .pyc.pyc file and tries to add it as new file. See output below...
System info: WinWindows 7, cygwin
Note: This issue is CLEARLY not about the ignored file being already tracked. Also iI also tried both DOS- and Unit styleUnix-style line endingendings on the .gitignore.gitignore file.
git statusgit status gives:
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: .gitignore
# new file: feedapp/__init__.py
# new file: feedapp/appconfig.py
# new file: feedapp/appconfig.pyc
How do iI troubleshoot this further?