Change URL for Git Repository

Posted on Mar 26, 2025

by Jimmy

Last updated on May 1, 2025

Git

Renamed the repo and now your pushes won’t work? No worries, just use this command to fix the issue:

Markdown
        
            git remote set-url origin <NEW_GIT_URL_HERE>        
    

For example: git remote set-url origin https://LarocheJ@bitbucket.org/truemarket/alberta-beef.git

Stackoverflow answer here.


Back to Snippets