forked from freeCodeCamp/freeCodeCamp
-
Notifications
You must be signed in to change notification settings - Fork 0
README
Rafael J. Rodriguez edited this page Apr 29, 2016
·
12 revisions
Our open source community's Wiki focuses on answering your questions about learning to code and getting a coding job. We also cover in detail our:
- Curriculum
- Local Campsite Communities
- Nonprofit Projects
- Fork it: You can get your own fork of our wiki by using the button or clicking this.
- Once you have forked the repository, you will clone it with:
$ git clone https://github.com/YOUR-USERNAME/wiki.gitThis will make a local copy on your machine.
- Add the remote: You will need a way to keep your fork synchronized with the original repository. The following command will show you verbose list of the current remotes you have.
$ git remote -v
origin https://github.com/YOUR_USERNAME/wiki.git (fetch)
origin https://github.com/YOUR_USERNAME/wiki.git (push)This means there is no remote pointing to the original repository you forked from. You would add it with:
$ git remote add upstream https://github.com/FreeCodeCamp/wiki.gitThis will create a new remote named upstream. You can verify the changes with git remote -v
$ git remote -v
origin https://github.com/YOUR_USERNAME/wiki.git (fetch)
origin https://github.com/YOUR_USERNAME/wiki.git (push)
upstream https://github.com/FreeCodeCamp/wiki.git (fetch)
upstream https://github.com/FreeCodeCamp/wiki.git (push)- Sync the fork when needed: After another PR has been merged, you will need to fetch the changes and rebase your work.
# fetch all remote repos and delete any deleted remote branches
$ git fetch --all --prune
# switch to `master` branch
$ git checkout master
# reset local `master` branch to match `upstream` repo `master` branch
$ git reset --hard upstream/master
# push changes to your forked wiki repo
$ git push origin master- Once you have completed these steps, you can start contributing by checking our issues and creating new pull requests.
We currently have a couple of guides to help you contribute, via the browser, command line or desktop application. You can find this and many more guides and information on the Wiki Central Page.
