The local git repo should pull from one server. Then it needs to direct the specific branch to the browse repository with a different branch name on another server.
Something like: Pull everything from PullOnlyRepo to Server1 (we will call this origin, maybe?) Click "Disable branch" for ReivewRepo with the name of the JistChanges branch on Server2.
Right now git config -l is showing:
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* remote.origin.url=<URL for Server1> remote.origin.pushurl=no_push (this shouldn't matter since it is a pull only repo) branch.production.remote=origin branch.production.merge=refs/heads/production remote.review.url=<URL for Server2> remote.review.fetch=+refs/heads/*:refs/remotes/review/*
git pull does what I want (selecting changes from the right place on Server1 and merging them with my tree).
However, git push does not work. To achieve what I want, I need to do
git push review hotfix:JistChanges
Is there any way to do git pull do this without having to add extra stuff?
There are several questions that are already set so that your local branch clicks on remote access with a different branch name. However, they also change upstream and where the thrust comes from.
source share