I created a new branch in my git repo and I'd like to not have to copy and paste in all of my gitignored files every time I switch branches. is there a way to save a file to the repo but just not have it show on github or is this just one of those things?
CodePudding user response:
Since git is ignoring those files, they'll stay around as you switch branches.
CodePudding user response:
I don't know why I had to do this but I just ran:
git rm --cached <file>
for each file I needed hidden, rewrote them in .gitignore
, and it worked how it was supposed to after that.