---
name: "git-resolve"
section: "1"
platform: "linux"
package: "git-core"
version: "1:1.4.4.4-4+etch4"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/git-resolve"
---

# git-resolve(1)

Merge two commits

## NAME

git-resolve - Merge two commits

## SYNOPSIS

*git-resolve* \<current\> \<merged\> \<message\>

## DESCRIPTION

Given two commits and a merge message, merge the \<merged\> commit into \<current\> commit, with the commit log message \<message\>.

When \<current\> is a descendant of \<merged\>, or \<current\> is an ancestor of \<merged\>, no new commit is created and the \<message\> is ignored. The former is informally called "already up to date", and the latter is often called "fast forward".

## AUTHOR

Written by Linus Torvalds \<torvalds@osdl.org\> and Dan Holmsand \<holmsand@gmail.com\>.

## DOCUMENTATION

Documentation by David Greaves, Junio C Hamano and the git-list \<git@vger.kernel.org\>.

## GIT

Part of the [**git**(7)](/git/7.md) suite
