-
Notifications
You must be signed in to change notification settings - Fork 0
Contributor Workflow
Cristina Solana edited this page Jul 25, 2015
·
1 revision
If you want to contribute changes to the project and are willing to use the git workflow below, then it can be you.
- master [Stable]
- dev [Testing]
- If hosted on GitHub: gh-pages
Run the following commands:
git config --global user.name "Firstname Lastname"
git config --global user.email [email protected]
git config --global color.ui "auto"
git config --global pack.threads "0"
git config --global diff.renamelimit "0"
git config --global core.autocrlf "input"
git config --global branch.autosetupmerge true
Special settings found on github in the "Account Settings" tab is a point "Global git config information". Please use the two git commands described there:
git config --global github.user username
git config --global github.token token
1. Go to: http://github.com/Code-For-Miami, find the project you are interested in and fork it, then clone your forked repository into the desired directory on your machine.
cd path/to/desired/directory-name
git clone [email protected]:YOUR-USERNAME/NAME-OF-THE-FORKED-REPO.git
2. To keep your fork up to date you’ll need to create an upstream remote from the Code for Miami project repository:
cd <directory-name>
git remote add upstream git://github.com/Code-For-Miami/NAME-OF-REPO-YOU-FORKED.git
git fetch upstream
We won’t consider any pull requests for commits that are made directly in any of these branches: master or gh-pages.
git branch
If your branch is not checked out: git checkout dev
git pull upstream package
NOTE: If you have any conflicts, you will need to fix the affected file manually and git add file-name
git commit -am “My commit message”
git push
If you’re not familiar with Git and GitHub, here are some links we’ve found helpful:
https://help.github.com/articles/fork-a-repo