Useful Commands#
This is a selection of commands that can particularly enhance your experience with :
git status
Displays information about:
How your current branch compares to its reference branch(es).
The status of the workspace:
What files have changed and are staged,
What files changed and are unstaged.
Commands you might want to run.
Note
git status can be particularly useful wenn running a rebase during which you have to step through all rebased commits.
git checkout
Update the files in the working tree to the specified state. If a branch is provided then HEAD is also updated to point to this branch.
Note
git checkout -b new-branch will create a new branch named new-branch.