Forked from DianaEromosele/Change "origin" of your GIT repository
Last active
June 25, 2020 06:15
-
-
Save john-theo/7c1afc4b6dde4bb7a10b5dc425c2b096 to your computer and use it in GitHub Desktop.
Change "origin" of your GIT repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git remote rm origin | |
| git remote add origin [email protected]:John-Theo/repo.git | |
| git config master.remote origin | |
| git config master.merge refs/heads/master | |
| # https://stackoverflow.com/questions/44031150/why-does-git-pull-hang/50253087#50253087 | |
| git fsck && git gc --prune=now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment