Skip to content

Instantly share code, notes, and snippets.

View motaher13's full-sized avatar

motaher hossain motaher13

View GitHub Profile
@motaher13
motaher13 / git.migrate
Created December 26, 2018 06:29 — forked from CESARDELATORRE/git.migrate
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.
#