Quantcast
Channel: Git push existing repo to a new and different remote repo server? - Stack Overflow
Viewing all articles
Browse latest Browse all 20

Answer by elliot for Git push existing repo to a new and different remote repo server?

$
0
0

The way I've accomplished this is:

  1. Create a new repo on github (new-repo.git)
  2. cd old-repo/ on local machine and fetch all new changes
  3. git push -u https://github.com/[username]/new-repo.git main -f
  4. Clone your new remote repo https://github.com/[username]/new-repo.git to your local environment

I've found this a simple way to essentially copy an old remote repo into a new remote repo.


Viewing all articles
Browse latest Browse all 20

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>