When a remote git repository is renamed, you can configure your local git repository to point to the new remote repository using these instructions.  This would allow you to keep any work that you have done in the local repository without having to modify or commit the files again.

Step-by-step guide

The following steps show how to configure your local repository after the remote tssgTechMVP repository was renamed to tssgTech on 2018-11-29.

  1. Look at where your current clone is pointing to for origin (remote).
    cd <your cloned local tssgTechMVP repository>
    git remote -v
            origin ssh://tssg/git-server/repos/tssgTechMVP.git (fetch)
            origin ssh://tssg/git-server/repos/tssgTechMVP.git (push)
  2. Change the url to point to the new repository
    git remote set-url origin ssh://tssg/git-server/repos/tssgTech.git
  3. Ensure that your local git repo is configured to go to the new repository
    git remote -v
            origin ssh://tssg/git-server/repos/tssgTech.git (fetch)
            origin ssh://tssg/git-server/repos/tssgTech.git (push)
  4. Get the latest changes for master
    git checkout master
    git pull
  5. Get the latest changes for multipage
    git checkout multipage
    git pull

 

If you don't have any changes that need to be pushed from your local repository, you could just delete the local repository folder and do a fresh clone of the remote repository. Reference: Git Repository