Basically what I'm trying to do is make a file be on a "dev" branch, but not on a "master" branch. I've been looking at this but am having a bit of trouble understanding it. What I want to do is keep a single file to one branch exclusively. Everything I'm reading with .gitignore
and excludefiles
seems more about excluding the files from the repository in general instead of from a specific branch.
So, would the method in the link work for excluding a file from specific branches? Or is there another way to do it?
(I'm new to using git, and don't entirely understand the remote section at the end)