mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-28 08:53:55 +00:00
Update cheatsheets
This commit is contained in:
29
git-merge
Normal file
29
git-merge
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git merge
|
||||
|
||||
> Merge branches.
|
||||
> More information: <https://git-scm.com/docs/git-merge>.
|
||||
|
||||
- Merge a branch into your current branch:
|
||||
|
||||
`git merge {{branch_name}}`
|
||||
|
||||
- Edit the merge message:
|
||||
|
||||
`git merge --edit {{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`
|
||||
|
||||
- Merge using a specific strategy:
|
||||
|
||||
`git merge --strategy {{strategy}} --strategy-option {{strategy_option}} {{branch_name}}`
|
||||
Reference in New Issue
Block a user