Skip to content

Branches

Fenêtre de terminal
git branch # list branches
git branch new-branch # create a new branch
Fenêtre de terminal
git checkout new-branch
# or (new syntax)
git switch new-branch
Fenêtre de terminal
git merge new-branch

  • Use clear names (feature/login, bugfix/header).
  • Delete branches that are no longer needed with git branch -d.
  • Always test before merging.