Git Workshop
  • ⚪Overview
  • 🟤Guides
    • Git and GitHub
    • Features of Git
    • Features Of GitHub
    • Downloading and Installing Git Bash
  • 🟢Fundamental
    • Version Control
    • Repository
    • Branches
    • Commits
    • Pull and Push
    • WorkFlow
    • SSH Setup
  • 🔵Commands
    • Setup
    • Start a project
    • Make Changes
    • Review your Repo
    • Branches
    • Merging
    • Rebasing
    • Undoing
    • Synchronizing
    • Stashing
Powered by GitBook
On this page
  • Merging branch A into branch B
  • Merge and Squash
  1. 🔵Commands

Merging

Merging branch A into branch B

  • git checkout B

  • git merge A

Merge and Squash

  • git merge --squash A

    -it merges and squash all commits into one new commit

PreviousBranchesNextRebasing

Last updated 3 years ago