I think I said that all correctly.
I've got a staging server with Git on it, my buddy and I push changes to that Git repo from our local clones of that repo, when we're ready to make something public, we tag it 'n all that, but then I have to do a git reset --hard
to update the actual files on the server to HEAD, which seems a bit strange to me.
I think the issue might be a fundamental misunderstand of how git works. Usually I branch my code on my local repo, work on it, then merge it to the master repo, then git push
, is this correct?
Sorry, I'm quite a newbie when it comes to git, any resources for working with remote git repos would be greatly appreciated, thanks!