To contribute content to this repository (repo), use the GitHub workflow described here. To follow the entire contribution process, go to CONTRIBUTING.md.
Note: This workflow shows how to make changes to the repo from the command line by using git commands. If you do not want to use the command line, you can use GitHub Desktop or another GitHub GUI instead to accomplish the steps.
-
Create a fork of this repo.
-
Use the SSH URL for the forked repo to clone it to your local system:
git clone [email protected]:my-github-username/docs-starter-kit.git
-
Track the upstream repo:
cd docs-starter-kit git remote add --track master upstream [email protected]:rackerlabs/docs-SDP.git
Start new changes with the following steps.
-
Bring your branch up-to-date with the upstream repo:
git checkout master git pull --rebase upstream master
-
Create a branch for changes. For details about this part of the workflow, see Understanding the GitHub Flow guide.
git checkout -b <name-of-branch>
-
In the new branch, make changes to existing files and add new files, as needed.
-
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:
a. Go to https://github.rackspace.com/IX/docs-starter-kit.
b. Click the Create pull request button.
c. If this PR is related to an outstanding GitHub issue, include a link to that GitHub issue in the comment.
-
The Information Development team reviews your PR.
-
If necessary, incorporate changes from the review, and make updates to your PR by adding more commits:
git add . git commit -m "The reason for my update" git push
-
Repeat step 12 as needed.
-
Resolve conflicts, if necessary.
During your review process, someone might have already updated and merged a file that you are in the process of changing. Such a conflict means that you can’t merge your PR. To resolve the conflict, perform the following steps.
a. Bring your branch up-to-date with the upstream repo by running the following commands from your branch:
git fetch upstream git rebase upstream/master
b. Follow the steps to resolve a merge conflict from the command line.
-
When content is approved and you have resolved any conflicts, the Information Development team merges your PR.
-
Update your repo:
git checkout master git pull --rebase upstream master git push
To see repo status in your prompt and to activate automatic completion, perform the following steps:
-
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 lines to the
.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