mirror of https://github.com/CrimsonTome/tldr.git
21 lines
355 B
Markdown
21 lines
355 B
Markdown
# git merge
|
|
|
|
> Merge branches.
|
|
> Homepage: <https://git-scm.com/docs/git-merge>.
|
|
|
|
- Merge a branch with your current branch:
|
|
|
|
`git merge {{branch_name}}`
|
|
|
|
- Edit the merge message:
|
|
|
|
`git merge -e {{branch_name}}`
|
|
|
|
- Merge a branch and create a merge commit:
|
|
|
|
`git merge --no-ff {{branch_name}}`
|
|
|
|
- Abort a merge in case of conflicts:
|
|
|
|
`git merge --abort`
|