Skip to content

Instantly share code, notes, and snippets.

@misterrodger
Last active March 7, 2019 17:45
Show Gist options
  • Save misterrodger/2b8ac21a54096da2901696c7696fbcf6 to your computer and use it in GitHub Desktop.
Save misterrodger/2b8ac21a54096da2901696c7696fbcf6 to your computer and use it in GitHub Desktop.

GitHub Workflow Cheat Sheet

  1. Create new Repo on FACN5 with readme

  2. Clone it and move into directory

  3. Raise issues on work to be done

  • Descriptive Title
  • In body of issue give detail about how to complete the work
  • Assign people to the work
  1. Create a branch for one feature
  • Unique and descriptive name: git branch create-heading-with-shadow"
  1. Leave master, switch to branch:
  • git checkout create-heading-with-shadow
  1. Work on file(s)

  2. Add files to staging:

  • git add index.html style.css
  1. Commit files in staging, and link to issue(s):
  • git commit -m "added heading and styling
    Relates #3 and #4"
  1. Push to branch
  • git push origin create-heading-with-shadow
  1. Create a pull request (on GitHub site)
  • add a descriptive title
  • select reviewer(s)
  1. Merge pull request and delete branch. Done by last reviewer or person who raised issue (to be agreed)

  2. Update your local repo:

  • git checkout Master
  • git pull origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment