Git_Branching

Learning Git Branching

Define terms

-Branch

    1. Isolation
    1. Parallel Development

Git Commands

  1. Create a branch

git branch "branchname

  1. Switching between branches

git switch branchname git checkout branchname

  • Directory switching to a new branch

git checkout -b branchname

  1. Merging

    git merge sourcebranch

  2. Resolve Conflicts

    git mergetool

  3. List all branches git branch

  4. A list of extra commands git branch -v git status

  • List merged commits git branch --merged

  • List unmerged commits git branch --no-merged

    Bonus Command

 <h1>  git log</h1>