এই ভিডিওতে আমরা Git Branching কীভাবে ব্যবহার করা হয় তা step by step দেখেছি।

Git Branching Commands

  • List branches
git branch
  • Create a branch
git branch <name>
git switch -c <name> # create and switch
git switch -c <name> <commit> # create from specific commit
  • Switch branches
git switch <branch-name>
  • Delete branches
git branch -d <name> # safe delete (merged only)
git branch -D <name> # force delete
  • Legacy (use with caution)
git checkout <branch-name> # switch or restore files
git checkout -b <name> # create and switch