Skip to content

Instantly share code, notes, and snippets.

@ninjapanzer
Last active August 29, 2015 14:27
Show Gist options
  • Save ninjapanzer/ff83d2d3c0b72ad70c7d to your computer and use it in GitHub Desktop.
Save ninjapanzer/ff83d2d3c0b72ad70c7d to your computer and use it in GitHub Desktop.
Basic workflow

The Workflow

  1. Check what branch you are on (git branch)
  2. Sync Remote via (git pull)
  3. Identify Feature for branch
  4. Create a branch for feature (git checkout -b <useful_branch_name>)
    • Branch name should be a reasonable unit of work that is worth 16hrs or so of work
  5. Do Work and Make a commit (git commit -m "<some message>")
  6. Sync with remote again via (git push) or (git gui)
  7. Open a PR for you new branch with a useful message in Github
    • use that PR for reference until the work is complete
@pearvert
Copy link

Shouldn't there be a 'git add' before step 4 'git commit'? The message I got was "nothing to commit'. I did an add and then git was happy to commit. Or is this just when creating a new branch to work on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment