Created
January 2, 2017 16:17
-
-
Save mohamed-ea/1dc02901243bd7cedda604c4a468d708 to your computer and use it in GitHub Desktop.
Change "origin" of a GIT repository
This file contains 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 -v | |
$ git remote rm origin | |
$ git remote add origin [email protected]:newgit/proj1.git | |
$ git config master.remote origin | |
$ git config master.merge refs/heads/master | |
$ git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment