tidied explanation for git remote add upstream
This commit is contained in:
parent
4506698224
commit
003a324004
|
@ -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
|
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.
|
`cd cloned_directory_name` to see what was installed.
|
||||||
|
|
||||||
### Add the upstream path (Do this step only once!)
|
### Add the upstream path
|
||||||
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!
|
|
||||||
|
_(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:
|
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
|
### 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:
|
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:
|
||||||
|
|
Reference in New Issue