-
Notifications
You must be signed in to change notification settings - Fork 13
Fork, Clone, Remote
If you want to contribute to the project you will have to create your own copy of the project on GitHub. You can do this by clicking the Fork button that can be found on the top right corner of the landing page of the repository.
** Important **: You should also add GCE's remote (down below), to fetch changes to the main repository.
Note: You need git on your machine.
If you have forked the project, run the following command -
git clone https://github.com/YOUR_GITHUB_USER_NAME/GCE-NEIIST-webapp
where YOUR_GITHUB_USER_NAME
is your GitHub handle.
If you haven't forked the project, run the following command -
git clone https://github.com/GCE-NEIIST/GCE-NEIIST-webapp
Note that you CAN'T contribute to the project if you don't fork it.
Note: This is only needed if you want to contribute to the project.
When a repository is cloned, it has a default remote named origin that points to your fork on GitHub, not the original repository it was forked from. To keep track of the original repository, and to facilitate fetching code that may be merged during your development, you should add another remote named upstream. For this project it can be done by running the following command:
git remote add upstream https://github.com/GCE-NEIIST/GCE-NEIIST-webapp
You can check that the previous command worked by running git remote -v
.
You should see the following output:
$ git remote -v
origin https://github.com/YOUR_GITHUB_USER_NAME/GCE-NEIIST-webapp (fetch)
origin https://github.com/YOUR_GITHUB_USER_NAME/GCE-NEIIST-webapp (push)
upstream https://github.com/GCE-NEIIST/GCE-NEIIST-webapp.git (fetch)
upstream https://github.com/GCE-NEIIST/GCE-NEIIST-webapp.git (push)