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

0 vote

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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

1,745 views 1 5
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