I just migrated from atom/spyder to using PyCharm. I am writing a larger codebase now, so I decided to use Git, as I figured that will make it easier to stage the codebase to a remote server later. I'm totally new to Git.
I think I made a mistake, when creating the repository, of including the
git -r rm --cached .\.idea\
Hi as you wanted you can ignore globally some files i guess is what you want and you can ignore locally some files.
If your (file wanted as ignored) are all ready staged you need to unstaged from repository :
git rm --cached .idea/* //or git update-index --assume-unchange .idea/*
Here how to do globally :
git config --global core.excludesfile ~/.gitignore_global
add the this file .gitignore_global
Here you can do it locally on root project :
1) create file .gitignore add this :
All are done.