Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Latest commit

 

History

History
145 lines (101 loc) · 4.12 KB

GITHUBING.md

File metadata and controls

145 lines (101 loc) · 4.12 KB

GitHub workflow :octocat:

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.

Prerequisite

Workflow

  1. Create a fork of this repo.

  2. Use the ssh URL for the forked repo to clone it to your local system.

    git clone git@github.com:my-github-username/docs-cloud-databases.git
    
  3. Track the upstream repo

    cd getcarina.com
    git remote add --track master upstream git@github.com:rackerlabs/docs-cloud-databases.git
    

    Start new changes with the following steps.

  4. Bring your branch up-to-date with upstream

    git checkout master
    git pull --rebase upstream master
  5. 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>
  6. In the new branch, make changes to existing files and add new files, as needed.

  7. Add all files relevant to the change

    git add .
    
  8. Commit the changed files.

    git commit -m "The reason for my change"
  9. Push your branch to your fork

    git push -u origin <name-of-branch>
  10. Create a pull request (PR) to the upstream repo for your branch

    a. Go to https://github.com/rackerlabs/docs-cloud-databases

    b. Click on the Create pull request button

    c. If this PR is related to an outstanding github GitHub issue, include a link to that GitHub issue in the comment

  11. The Information Development team will review your pull request.

  12. 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
  13. Repeat step 12 as needed.

  14. 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.

  15. When content is approved and you have resolved any conflicts, the Information Development team will merge your pull request.

  16. Update your repo

    git checkout master
    git pull --rebase upstream master
    git push

Tip

To see repository status in your prompt and to activate auto-completion, perform the following steps:

  1. Download git-prompt.sh and save it in your home directory as .git-prompt.sh

  2. Download git-completion.bash and save it in your home directory as .git-completion.bash

  3. 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

Help