tldr/pages/common/git-merge.md

21 lines
363 B
Markdown
Raw Permalink Normal View History

2015-10-22 08:31:52 +01:00
# git merge
2014-03-09 12:20:13 +00:00
> Merge branches.
> More information: <https://git-scm.com/docs/git-merge>.
2014-03-09 12:20:13 +00:00
- Merge a branch into your current branch:
2014-03-09 12:20:13 +00:00
`git merge {{branch_name}}`
2014-03-09 12:20:13 +00:00
- Edit the merge message:
2014-03-09 12:20:13 +00:00
`git merge -e {{branch_name}}`
- Merge a branch and create a merge commit:
`git merge --no-ff {{branch_name}}`
2018-07-18 22:05:38 +01:00
- Abort a merge in case of conflicts:
2018-07-18 22:05:38 +01:00
`git merge --abort`