GIT-CP(1) Git Extras GIT-CP(1)

git-cp - Copy a file keeping its history

git-cp <current_filename> <destination_filename>

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

Copy README into README.txt

$ git cp README README.txt

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

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

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

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

November 2023