Skip to content

Instantly share code, notes, and snippets.

View elysium306's full-sized avatar
📚
Focusing

elysium306 elysium306

📚
Focusing
  • FreeLancer
  • United States
View GitHub Profile
@CESARDELATORRE
CESARDELATORRE / git.migrate
Created October 10, 2016 19:52
Move your existing git repository # to a new remote repository
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
### OPTION 1 ###########################################################################################
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#