Git - merge 合并分支

117 阅读1分钟

merge 主要用来执行两个或多个分支的合并,提交内容存在冲突,需要处理冲突,在提交一条冲突合并提交

git merge 格式参考

git merge [-n] [--stat] [--no-commit] [--squash] [--[no-]edit]
	[--no-verify] [-s <strategy>] [-X <strategy-option>] [-S[<keyid>]]
	[--[no-]allow-unrelated-histories]
	[--[no-]rerere-autoupdate] [-m <msg>] [-F <file>]
	[--into-name <branch>] [<commit>…​]
git merge (--continue | --abort | --quit)