Skip to content

Instantly share code, notes, and snippets.

@cubeton
Last active April 6, 2018 22:43
Show Gist options
  • Save cubeton/3a2616c44e35ca68a6b0 to your computer and use it in GitHub Desktop.
Save cubeton/3a2616c44e35ca68a6b0 to your computer and use it in GitHub Desktop.
add repo to github
mnelson:myproject mnelson$ git remote add origin https://github.com/cubeton/mynewrepository.git
mnelson:myproject mnelson$ git push -u origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 263 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/cubeton/mynewrepository.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.
@Savages80
Copy link

.

@francisbarton
Copy link

Hi, I came here from https://product.hubspot.com/blog/git-and-github-tutorial-for-beginners
I feel like you've done that classic thing here that always happens with tech tutorials. Steps 1-5 are really clear and everything makes sense: the description of what is happening matches up exactly with the code examples and it's all super-simple. Then we get to this step, step 6, and suddenly we've got a "git remote add origin" command that is not described in the text and it's not clear where this command comes from or what 'origin' means. Followed by "git push -u origin master" which is also not really explained.
It suddenly goes up a gear and this is how people like me get left behind with tutorials and end up feeling despondent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment