YouTip LogoYouTip

Git Branching and Merging

Git Branching

git checkout -b feature/login
git add .
git commit -m "Add login"
git checkout main
git merge feature/login
git branch -d feature/login

Git Rebase

git checkout feature
git rebase main
# Rewrites history for cleaner commits

Summary

  • Branches enable parallel development
  • Rebase creates linear history
← Nginx Reverse ProxyOllama Tutorial - Getting Star β†’