I’m using git to track a project, and if it’s possible, I’d like to set things up so git handles all my code staging, I can have a local repository for testing, and then push changes to the server with git to make them live. However, in trying to use standard git push calls, I just end up with inconsistent branching and a terrible mess of conflicting histories. Is there a way to manage staging using git?
I’m using git to track a project, and if it’s possible, I’d like to
Share
You have in this blog post an example of Git repo used for staging:
It involves a post-update hook on the bare repo side, in order to trigger the update of the repo on the live web server side.