Skip to content

Bitbucket - Change the remote URL to your repository #17

@mangreen

Description

@mangreen

Change the remote URL to your repository

https://confluence.atlassian.com/bitbucket/change-the-remote-url-to-your-repository-794212774.html

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions