Description:
- Pointers to a specific commit — nothing more.
- Remember that a branch essentially says “I want to include the work of this commit and all parent commits”
- if git checkout and not yet commit, both pointers of 2 branches point to same commit
gitGraph
commit
branch develop
checkout develop
commit
Synopis:
- s
- git branch
[--track[=(direct|inherit)] | --no-track]
[-f]
- directly force reassign a branch to a commit
- git branch -f main HEAD~3
[--recurse-submodules] <branchname> [<start-point>]