Take the 2-minute tour ×  I don't know why this seems to be so
unclear to me.  I have 2 repos, repo1 and repo2. In each repo
are the branches: staging master and live  I think part of my
problem is that I'm trying to get .gitignore working after
already starting to use git (e.g. the repos were init'd before
gitignore was populated correctly).  I've tried all the
wonderful git-update-index --assume-unchanged file's and the
neat git rm -r --cached .'s I could find, but I'm still not
understanding because it still doesn't work.  I'd like a couple
of specific config files and cache folders to be ignored on
pull's and push's.   If I'm on repo1>staging and I push to
repo2>staging, which .gitignore takes precedence? Or do they
both get applied?   On a couple of attempts, I seemed to have
gotten the config files to be ignored on push, but instead of
just not sending over the changes to those files, it deleted
them entirely out of the branch. Confusing.   If it would be
smarter to start over (it's an option) in order