Last active
August 29, 2015 14:21
-
-
Save gpassarelli/c9268a31afdacb8dede7 to your computer and use it in GitHub Desktop.
Alter GIT Origin Source
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
# View current Origin | |
cd /path/to/my/repo | |
git remote -v | |
git remote rm origin | |
# Add new Origin | |
$ cd /path/to/my/repo | |
$ git remote add origin ssh://[email protected]/username/myproject.git | |
$ git push -u origin master # to push changes for the first time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment