Git is the best tool for developers to collaborate.
When developing software, developers share the same source code.
Branch is a feature that allows multiple developers to work on different tasks at the same time.
You can do multiple tasks at the same time without affecting other people's work.
A branch is created in master or main.
A branch is an independent workspace. You can create a new branch by merging the changed part with another branch.
Changes can be applied by merging each task after working in a branch.
When you create a Github Repository, a main branch is created by default. Integration Branch stands for main.
It contains the code in a state where all functions are working well.
A feature branch is merged with another branch when one task is completed.
git branch 새로운 브랜치 이름
git switch -c 새로운 브랜치 이름 git checkout -b 새로운 브랜치 이름
git branch -v
git branch -d 삭제할 브랜치 이름
git switch 브랜치 이름 git checkout 브랜치 이름
git checkout master git merge dev
You can copy the Origin Repository through Fork and download it to Local Storage through Clone.
Create a Branch and go to the Branch you created.
git checkout -b dev
You can create dev branch and change the repository to dev
You can check the list of branches.
You can go to (Branch Name).
It is used when moving to the branch that will be the basis before merging.
To merge Branch Name2 with Branch Name1, move to Branch Name1 and use the git merge Branch Name2 command to merge.
Use push to upload local work to the github repository.