Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Participants don't realise they only need to set up the git remote once. #21

Open
36degrees opened this issue Feb 28, 2020 · 0 comments

Comments

@36degrees
Copy link
Contributor

This issue was observed whilst facilitating Prototype Kit training in Manchester on 20 February 2020.

At least one participant did not realise that they only needed to set up the GitHub remote once, and that when they wanted to push changes in the future they could jump straight to git push -u origin master.

Because they had already had a remote with that name, they were getting an error message that they did not understand when they were trying to set up the remote again.

1. Go to the remote repo in GitHub. This is the empty repo created earlier.
1. Select the __Clone or download__ button.
1. Select __Use HTTPS__ .
1. Select the copy button.
1. Back in the command line, link the local repo to the remote repo by typing:
```
git remote add origin REMOTE-REPO-URL
```
Where `REMOTE-REPO-URL` is the copied URL.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant