Skip to content

Instantly share code, notes, and snippets.

@savepong
Last active March 27, 2017 13:42
Show Gist options
  • Save savepong/f91756636feeffe6758fdd3ac298b04b to your computer and use it in GitHub Desktop.
Save savepong/f91756636feeffe6758fdd3ac298b04b to your computer and use it in GitHub Desktop.
Bitbucket Modify your Git remote URLs
# 1. Navigate to your repository's directory in a terminal window using the command cd path/to/your/repository.
# 2. Run the following command (which modifies the fetch URL) from your terminal window:
# for SSH
git remote set-url origin git@bitbucket.org:{new team or account name}/{repository name}.git
# for HTTPS
git remote set-url origin https://{username}@bitbucket.org/{new team or account name}/{repository name}.git
# 3. Run the following command (which modifies the push URL) from your terminal window:
# for SSH
git remote set-url --push origin git@bitbucket.org:{new team or account name}/{repository name}.git
# for HTTPS
git remote set-url --push origin https://{username}@bitbucket.org/{new team or account name}/{repository name}.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment