A question on how to practically use Git.
I have code that's deployed onto 2 servers (1 for staging, 1 for production); it's the same code but for a couple of files (different paths in config files).
NOTE -- I generally commit/push from a dev laptop, and just pull from those 2 servers.
I want the Git master branch to be an exact copy of the production fileset as it is running now. I think it makes more sense -- does it?
Though, I don't know exactly where to put the diffs for the staging server:
Is it better to use a staging branch? But, then, I must think to remerge every time I make a change into the master branch.
Is it better to commit locally, on the staging server, the path changes, and let Git rebase those commits (on top of HEAD) every time? But, then, I have unpushed commits staying there -- it can become a little mess, and I don't have to push them by mistake...
Is there another, simpler, scenario which I don't think of?