Last active
March 27, 2017 13:42
-
-
Save savepong/f91756636feeffe6758fdd3ac298b04b to your computer and use it in GitHub Desktop.
Bitbucket Modify your Git remote URLs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 [email protected]:{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 [email protected]:{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