kemonine
/
lollipopcloud
Archived
1
0
Fork 0

tidied explanation for git remote add upstream

This commit is contained in:
remotenemesis 2019-01-13 09:37:56 -08:00
parent 4506698224
commit 003a324004
1 changed files with 6 additions and 3 deletions

View File

@ -47,12 +47,15 @@ You are downloading all the project files to your computer! Good work!
Git will install the project in a new folder. Use the command `ls` to see the name of the new project folder if you are unsure. Open this new folder with
`cd cloned_directory_name` to see what was installed.
### Add the upstream path (Do this step only once!)
If the master (where you forked FROM) changes, you will have to update your local clone. You will only have to do this step ONE time!
### Add the upstream path
_(Do this step only once!)_
Over time, you will want to keep your local clone of your fork updated with changes made to the original repo. To make this easier, define a "remote" repository in your local clone, called _upstream_, that points to the original repo.
From your `cloned_directory_name` directory, do this:
`git remote add upstream https://git.lollipopcloud.soltuions/lollipop_cloud/original_repository.git` (with the original repository URL).
`git remote add upstream https://git.lollipopcloud.solutions/lollipop-cloud/original_repository.git` (with the original repository URL).
### Create a branch
The `git checkout` command at the end will create a branch, but this is a good practice for each time you want to create a new branch for contributing: