Created
November 16, 2014 12:41
-
-
Save debuggerboy/19cbd4d1fda623f5f50a to your computer and use it in GitHub Desktop.
fool around with git remote origin
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
Already have a Git repository on your computer? | |
$ cd /path/to/existing/repo | |
$ git remote add origin https://<username>@github.com/<username>/<new_github_repo_created>.git | |
$ git push -u origin --all # pushes up the repo and its refs for the first time | |
$ git push -u origin --tags # pushes up any tags | |
To add a Remote Repo with other name - for ex: "gitbub" | |
git remote add github https://<username>@github.com/<username>/<new_github_repo_created>.git | |
To remove a Remote repo with other name : (local repo dir) | |
git remote rm github |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment