Skip to content

Commit

Permalink
Add git squash merge command
Browse files Browse the repository at this point in the history
  • Loading branch information
jatzz10 committed Feb 4, 2023
1 parent 3f9bfe7 commit 35a76d5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions commands/git/git-squash-merge-branch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
### Squash Merge a branch to the master

Merge branch to the master by combining all commits of the branch and merging as a single commit

`git merge --squash {{BRANCH}}`

- <b>BRANCH: </b> Branch which needs to be squash merged to the master

#### Example:

`git merge --squash feature-add-dashboard`

This will merge the branch 'feature-add-dashboard' to the master, and will squash all branch commits into a single commit in master

0 comments on commit 35a76d5

Please sign in to comment.