Stash problem while restoring

HI All,

i have two servers server1 is production server, i have taken backup of server1 using backup client provided by atlassian and restored in server2. but after restoring in server2 i tried pushing to the server2 and the push is happening in server1 and server 2 both.

When i pushed to server2 the push should go only to server2 not on server1. can any one know how to do it?

1 answer

Hi Madhu,

When you run a "git push", usually you will already have defined a remote http address with the "git remote" command.

For instance:

git remote add origin http://address/to/stash/repo.git
git push origin master

This will push the master branch to the address you specified as the "origin" alias.

For more details on those commands, please visit Atlassian Git website:

Best regards,

Thiago Bomfim

Atlassian Support - DevTools

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

717 views 0 4
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot