ABOUT GIT MAIN:
It's used to defines how developers create, manage and merge branches in a version control system like Git to ensure smooth collaboration and organized code development.
- Provides clear rules for writing, merging and deploying code.
- Helps keep the repository structured and maintainable.
- Reduces merge conflicts when multiple developers work simultaneously.
STEPS FOR BRANCHING IN GIT:
CREATE BRANCH : Create a branch with the name you want to specify.
git branch new-feature
GIT CHECHOUT: Navigate to the new feature branch from the current branch with the command
git checkout new-feature
CHECK CURRENT BRANCH: To check the current branch that you are currently on.
git branch

Top comments (0)