---
name: "git-cp"
section: "1"
platform: "linux"
package: "git-extras"
version: "7.3.0-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/git-cp"
---

# git-cp(1)

Copy a file keeping its history

## NAME

**git-cp** - Copy a file keeping its history

## SYNOPSIS

**git-cp** \<current\_filename\> \<destination\_filename\>

## DESCRIPTION

Copy a file keeping its git history. This allows merge conflict handling.

## EXAMPLES

Copy README into README.txt

-

  ```
  $ git cp README README.txt
  ```

-

  ## AUTHOR

Written by Rémy Hubscher \<*hubscher.remy@gmail.com*\>

## REPORTING BUGS

\<*https://github.com/tj/git-extras/issues*\>

## SEE ALSO

\<*https://github.com/tj/git-extras*\>

\<*https://stackoverflow.com/questions/16937359/git-copy-file-preserving-history/44036771#44036771*\>
