I have a set of repositories on Github and Bibucket. I have started from scratch all these repos are at master branch only.
Now after 15days i am updating Github with new changes at master. But how to sync these details in bitbucket repos. every time i am manually deleting the repos in bitbucket and importing from github. To avoid is there any sync up process between github to bitbucket whenever an update happens or do a manual sync up whenever desired.
You can configure multiple push repositories:
Suppose your git remotes are set up like this:
git remote add github email@example.com:aee/my-project.git git remote add bb firstname.lastname@example.org:ae1/my-project.git
origin remote probably points to one of these URLs.
Remote Push URLs
To set up the push URLs do this:
git remote set-url --add --push origin email@example.com:aee/my-project.git git remote set-url --add --push origin firstname.lastname@example.org:ae1/my-project.git
It will change the
remote.origin.pushurl config entry. Now pushes will send to both of these destinations, rather than the fetch URL.
Check it out by running:
git remote show origin
A branch can push and pull from separate remotes. This might be useful in rare circumstances such as maintaining a fork with customizations to the upstream repo. If your branch follows
github by default:
git branch --set-upstream-to=github next_release
(That command changed
Then git allows branches to have multiple
branch.<name>.pushRemote entries. You must edit the
.git/config file to set them.
There are a number of resources out there on this topic and here are a couple:
Hopefully this helps!
As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs