Relocating Git repository to new URL

The best way I found to do this was by running these two commands:

git clone --mirror old-remote-url-ending-in-dot-git

then move into the directory (ending in .git) that would be created, and run this command:

git push --mirror new-remote-url-ending-in-dot-git

All existing branches and tags would get pushed at one fell swoop.

Kristian Golding

View more posts from this author
51 thoughts on “Relocating Git repository to new URL
  1. back to life Emily Lark

    Hmm is anyone else encountering problems with the pictures on this blog loading? I’m trying to determine if its a problem on my end or if it’s the blog. Any feedback would be greatly appreciated.|

     
  2. back to life system

    Heya terrific blog! Does running a blog such as this require a massive amount work? I have virtually no knowledge of programming however I had been hoping to start my own blog in the near future. Anyhow, if you have any ideas or tips for new blog owners please share. I understand this is off subject nevertheless I just had to ask. Thanks a lot!|

     
  3. the fat decimator review

    Nice post. I learn something totally new and challenging on websites I stumbleupon on a daily basis. It will always be useful to read articles from other authors and use something from other web sites. |

     
  4. fat decimator diet plan

    This design is incredible! You obviously know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Wonderful job. I really enjoyed what you had to say, and more than that, how you presented it. Too cool!|

     
  5. fat decimator program reviews

    I have been exploring for a little bit for any high-quality articles or weblog posts in this kind of space . Exploring in Yahoo I eventually stumbled upon this website. Studying this info So i’m glad to show that I have a very excellent uncanny feeling I came upon just what I needed. I such a lot for sure will make certain to do not fail to remember this web site and provides it a look on a continuing basis.|

     
  6. fat decimator

    Hey would you mind sharing which blog platform you’re working with? I’m looking to start my own blog in the near future but I’m having a difficult time selecting between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then most blogs and I’m looking for something completely unique. P.S My apologies for being off-topic but I had to ask!|

     
  7. fat decimator diet

    Wow that was odd. I just wrote an extremely long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Regardless, just wanted to say superb blog!|

     
  8. the fat decimator system free download

    Hi, I think your website might be having browser compatibility issues. When I look at your website in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, wonderful blog!|

     
  9. the fat decimator system

    What’s Going down i’m new to this, I stumbled upon this I have found It positively helpful and it has aided me out loads. I’m hoping to give a contribution & help other users like its aided me. Great job.|

     
  10. fat decimator does it work

    Hey! This is kind of off topic but I need some guidance from an established blog. Is it hard to set up your own blog? I’m not very techincal but I can figure things out pretty quick. I’m thinking about setting up my own but I’m not sure where to start. Do you have any tips or suggestions? With thanks|

     
  11. kyle cooper

    Great blog here! Also your website loads up very fast! What web host are you using? Can I get your affiliate link to your host? I wish my website loaded up as quickly as yours lol|

     
  12. the fat decimator

    Excellent post. I was checking constantly this blog and I’m inspired! Very helpful info particularly the final phase 🙂 I care for such info much. I used to be looking for this particular information for a very lengthy time. Thank you and good luck. |

     
  13. fat decimator download

    Howdy just wanted to give you a quick heads up. The text in your post seem to be running off the screen in Opera. I’m not sure if this is a formatting issue or something to do with browser compatibility but I thought I’d post to let you know. The design look great though! Hope you get the issue resolved soon. Many thanks|

     
  14. fat decimator video

    Undeniably believe that which you said. Your favorite reason appeared to be on the web the easiest thing to be aware of. I say to you, I certainly get irked while people think about worries that they just do not know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people could take a signal. Will likely be back to get more. Thanks|

     
  15. fat decimator scam

    Terrific article! That is the kind of info that are meant to be shared around the internet. Disgrace on the search engines for now not positioning this put up upper! Come on over and visit my web site . Thanks =)|

     
  16. kyle cooper fitness

    Nice blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple adjustements would really make my blog jump out. Please let me know where you got your design. Bless you|

     
  17. the fat decimator system

    My spouse and I absolutely love your blog and find a lot of your post’s to be what precisely I’m looking for. can you offer guest writers to write content in your case? I wouldn’t mind producing a post or elaborating on most of the subjects you write related to here. Again, awesome website!|

     
  18. fatdecimator.com

    Link exchange is nothing else but it is only placing the other person’s blog link on your page at proper place and other person will also do same in support of you.|

     
  19. fat decimator diet

    Woah! I’m really loving the template/theme of this site. It’s simple, yet effective. A lot of times it’s difficult to get that “perfect balance” between usability and appearance. I must say that you’ve done a great job with this. Additionally, the blog loads extremely fast for me on Firefox. Excellent Blog!|

     
  20. fat decimator system scam

    Hey very nice site!! Man .. Beautiful .. Superb .. I’ll bookmark your web site and take the feeds also? I’m satisfied to find a lot of helpful info here in the publish, we need work out more techniques in this regard, thanks for sharing. . . . . .|

     
  21. fatdecimator.com

    Hi are using WordPress for your blog platform? I’m new to the blog world but I’m trying to get started and create my own. Do you need any coding expertise to make your own blog? Any help would be really appreciated!|

     
  22. fat decimator.com

    I will right away grasp your rss as I can not in finding your email subscription hyperlink or e-newsletter service. Do you have any? Kindly permit me know in order that I could subscribe. Thanks.|

     
  23. fat decimator diet plan free download

    Please let me know if you’re looking for a article author for your site. You have some really good posts and I feel I would be a good asset. If you ever want to take some of the load off, I’d love to write some content for your blog in exchange for a link back to mine. Please blast me an email if interested. Thanks!|

     
  24. fatdecimator.com

    Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your site? My blog site is in the very same area of interest as yours and my users would truly benefit from a lot of the information you present here. Please let me know if this okay with you. Many thanks!|

     
  25. fat decimator system free download

    This design is incredible! You certainly know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Excellent job. I really enjoyed what you had to say, and more than that, how you presented it. Too cool!|

     
  26. back to life

    Excellent post however , I was wondering if you could write a litte more on this subject? I’d be very grateful if you could elaborate a little bit further. Cheers!|

     
  27. the flat belly fix

    I got this web page from my friend who told me about this web page and now this time I am browsing this web page and reading very informative articles or reviews at this time.|

     
  28. Sasha Mabins

    Hi, I do believe this is an excellent web site. I stumbledupon it 😉 I am going to return once again since i have book-marked it. Money and freedom is the best way to change, may you be rich and continue to guide others.|

     
  29. Patrina Fiallos

    Thanks on your marvelous posting! I truly enjoyed reading it, you can be a great author. I will remember to bookmark your blog and will eventually come back down the road. I want to encourage you to continue your great job, have a nice evening!|

     
  30. zvodret iluret

    Hey! This is my first comment here so I just wanted to give a quick shout out and tell you I truly enjoy reading through your articles. Can you recommend any other blogs/websites/forums that cover the same topics? Appreciate it!