Git Branching
Git allows you to create multiple branches of your code, which is useful for working on different features or bug fixes simultaneously without interfering with each other.
sql
git branch feature-branch
git checkout feature-branch
# make changes to your code
git add .
git commit -m "My feature commit"
git checkout main
git merge feature-branch
No comments:
Post a Comment