-
Notifications
You must be signed in to change notification settings - Fork 29
Coweb Forking and Pull Requests
This page details Coweb-specific instructions on how you can start contributing to the coweb and cowebx repositories even if you don't have explicit access. It assumes that you have installed and configured Git on your machine.
The steps in this section only need to be completed once at initial setup.
- Fork the "coweb" and "cowebx" repositories:
- Now clone your fork(s) locally (replace USERNAME with your git username):
$ git clone [email protected]:USERNAME/coweb.git
$ git clone [email protected]:USERNAME/cowebx.git
- Keep track of the original opencoweb repo:
$ cd coweb
$ git remote add upstream git://github.com/opencoweb/coweb.git
$ cd ..
$ cd cowebx
$ git remote add upstream git://github.com/opencoweb/cowebx.git
In the future, when changes are made to the original opencoweb repo, you can pull them into your fork(s) by running the following from within both the coweb and cowebx repos:
$ git fetch upstream
$ git merge upstream/master
- Now follow the Dev Setup guide on your repos that you just forked, skipping the Source Control section at the top.
The steps in this section should be completed whenever you wish to submit a feature update or bug to the coweb project. For more information on the topics covered here, see branching and pull requests.
- Make a branch per feature/bug and name it "intelligently" so we have an idea of what you're doing. Run from within your local coweb or cowebx repo:
$ git checkout -b NAME
You can check what branch you are in:
$ git branch
You can switch to a branch after it has been created:
$ git checkout NAME
- Stage and commit any changes:
$ git add *
$ git commit -m "A short meaningful description of changes"
- Push this branch to your fork on github, where NAME is your current branch name:
$ git push origin NAME
- Navigate to YOUR repository on Github, switch branches if necessary, and click 'Pull Request':
- Enter a title (if not auto-filled) and description, review the request, and click 'Send Request':