When doing:
>git status
It shows a big list of .pyc files under \"untracked files\". I don\'t want it to show these, as it adds noise.<
Put in the file ~/.gitignore:
*.pyc
Run:
git config --global core.excludesfile ~/.gitignore
I agree with @David Wolever this option should be used with caution if ever.
The ~/.gitignore ("%HOME%\.gitignore" on Windows) is just a convention you can use any filename you like e.g., "c:\docs\gitignore.txt".