Push full GIT repository to new origin / remote

By | 20. February 2014

Having a local GIT repository linked to a remote which is not existing anymore is a problem I faced multiple times in the last time, so I thought I should document this. The steps are as follows:

  1. Identify old non-existing remote and delete it
  2. Add new remote
  3. Push all branches

Step 1: Identify…

… and delete …

… old remotes.

Step 2: Add new remote

 Step 3: Push all branches to new remote

Now, all branches should be pushed to the new repository.

Category: GIT

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.