GitHub workflow summary

  1. Start Git
git init
  1. Get the most recent version of master.
git pull
  1. Crate new branch which will allocate new feature.
git branch <name-of-branch>
  1. Check the branch was successfully created.
git branch
  1. Switch to the newly created branch.
git checkout <name-of-branch>
  1. Make the changes in the code that are related to the new feature.

  2. Check de changes are being tracked by git.

git status
  1. Add the new changes.
git add -A
  1. Commit new changes.
git commit -m "commit message"
  1. Check we are working on the branch that we are supposed to work on.
git branch