You may want to do this if the remote repository is migrated. The command for changing the remote url is:
git remote set-url
It takes 2 arguments: an existing remote name (origin, upstream) and the url.
Check your current remote url:
git remote -v
origin https://bitbucket.com/develop/myrep...