Skip to content

Instantly share code, notes, and snippets.

@gpassarelli
Last active August 29, 2015 14:21
Show Gist options
  • Save gpassarelli/c9268a31afdacb8dede7 to your computer and use it in GitHub Desktop.
Save gpassarelli/c9268a31afdacb8dede7 to your computer and use it in GitHub Desktop.
Alter GIT Origin Source
# 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