Basic GIT Feature Development Workflow

This is just a summary of how to create a branch when starting development on a new feature.

  1. Make sure you are in the root of your GIT project.
    cd ~/path/to/project/
  2. Create a new branch.
    git branch <branch>
  3. Checkout the new branch.
    git checkout <branch>
  4. Work on the new feature making new commits as needed.
    git add <file>
    git commit -m "Started work on a new feature"
    #repeat
  5. Merge the new feature back into the main codebase.
    git checkout master
    git merge <branch>
  6. Delete the branch.
    git branch -d <branch>
  7. Update version numbers.
  8. View branches
    #all: local and remote
    git branch -a
    #just remote
    git branch -r