Learning about Git Branching
- Branch
-
- Isolation
-
- Parallel development(collaborative development)
-
Create a branch
git branch "branchname"
-
Switching between branches
-
git switch branchname
-
git checkout branchname
-
Directly switching to a new branch
-
git checkout -b branchname
-
-
Merging
git merge sourcebranch
-
Resolve Conflicts
git mergetool
-
List all branches
git branch
-
A list of extra commands
git branch -v
git status
- List merged commits
git branch --merged
List unmerged commitsgit branch --no-mergedd
<h1> git log</h1>