This is the GitHub workflow we use to contribute content to this repo. To follow the entire contributing process for this repo go to CONTRIBUTING.md.
-
Fork from https://github.com/getcarina/getcarina.com
-
Clone your fork of the repo using the SSH clone URL
git clone [email protected]:my-github-username/getcarina.com.git
-
Track the upstream repo
cd getcarina.com git remote add --track master upstream [email protected]:getcarina/getcarina.com.git
-
🌅 Start new changes here.
Bring your branch up-to-date with upstream
git checkout master git pull --rebase upstream master
-
Create a branch to make a change. If you'd like to see some lovely graphics, this step is the start of the Understanding the GitHub Flow guide.
git checkout -b <name-of-branch>
-
Add all files relevant to the change
git add .
-
Commit the changed files
git commit -m "The reason for my change"
-
Push your branch to your fork
git push -u origin <name-of-branch>
-
Create a pull request (PR) to the upstream repo for your branch
- Go to https://github.com/my-github-username/getcarina.com
- Click on the Create pull request button
- If this PR is related to an issue, include a link to that GitHub issue in the comment
-
Notify rcs-tech a PR is ready for Tech Review
-
Make updates to your PR by adding more commits
git add . git commit -m "The reason for my update" git push
-
When the tech review is complete, it's time for the Editorial Review
-
Deal with conflicts
During your review process, someone may have already updated and merged a file that you are in the process of changing. This can result in a conflict and you won't be able to merge your PR. First you need to bring your branch up-to-date with upstream. While on your
<name-of-branch>
dogit fetch upstream git rebase upstream/master
Then go ahead and Resolve a merge conflict from the command line.
-
When the Editorial Review is complete and the button is green, Merge It!
-
Update your repo
git checkout master git pull --rebase upstream master git push
- Download git-prompt.sh and save it in your home directory as .git-prompt.sh
- Download git-completion.bash and save it in your home directory as .git-completion.bash
- Add the following to your .bash_profile in your home directory
GIT_PS1_SHOWDIRTYSTATE=1
GIT_PS1_SHOWUNTRACKEDFILES=1
GIT_PS1_SHOWCOLORHINTS=1
GIT_PS1_SHOWUPSTREAM=1
source ~/.git-prompt.sh
source ~/.git-completion.bash
- Understanding the GitHub Flow
- Mastering GitHub Issues
- GitHub Help
- GitHub help in Slack channel #git-support-group
- deconst help in Slack channel #deconst