🌱 Creating a New Branch

Step Action CLI LazyGit
1 Ensure you’re on main and up to date git checkout main β†’ git pull origin main Branches panel β†’ highlight main β†’ press <spacebar> β†’ then P (pull)
2 Create and switch to new branch git checkout -b feature/my-branch Branches panel β†’ press n (new branch) β†’ type feature/my-branch
3 Make and commit changes git add . β†’ git commit -m "feat: my changes" Files panel β†’ stage changes (a) β†’ commit (c)
4 Push new branch to remote git push -u origin feature/my-branch Branches panel β†’ highlight feature/my-branch β†’ press P (push, set upstream)
5 Confirm branch exists on GitHub Check Branches tab in GitHub repo Not possible – must use GitHub UI