Recently we changed the repository remote source and structure. We did not want to change local files and directories, as well as using same project in the current environments. Here is short command list to change the repo url.
First you need to change the repository url by the next command:
git remote set-url origin USER@HOST_DOMAIN:SCOPE/REPO.git
Then clean git cache and pull all changes from the new remote:
git gc
git pull
Last step is to refresh branches list and apply all changes accordingly:
git remote update origin --prune
git reset --hard origin/BRANCH
Hope it will help :)