I want to create a ‘live-release’ branch in GIT, so I can tell capistrano to pull the source from that branch.
Say I am in master, and now I am ready for a release, how can I push the code (FORCE) to the ‘live-release’ branch?
I want to force because I don’t really care about merge conflicts, I just want to, whenever i am ready, to push to ‘live-release’.
I want to avoid using master because it can be unstable.
Assuming both branches are in the same repository, use:
Or replace the
.with the name (URL) of the live-release repository.I’d recommend you don’t use force. If you only ever push to
live-releasefrommasterthen there should never be a merge conflict. If you do see a conflict then something has gone horribly wrong that you probably want to fix before you clobber yourlive-releasebranch.