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