.\" generated with Ronn-NG/v0.9.1 .\" http://github.com/apjanke/ronn-ng/tree/0.9.1 .TH "GIT\-CP" "1" "November 2023" "" "Git Extras" .SH "NAME" \fBgit\-cp\fR \- Copy a file keeping its history .SH "SYNOPSIS" \fBgit\-cp\fR .SH "DESCRIPTION" Copy a file keeping its git history\. This allows merge conflict handling\. .SH "EXAMPLES" Copy README into README\.txt .IP "" 4 .nf $ git cp README README\.txt .fi .IP "" 0 .SH "AUTHOR" Written by Rémy Hubscher <\fIhubscher\.remy@gmail\.com\fR> .SH "REPORTING BUGS" <\fIhttps://github\.com/tj/git\-extras/issues\fR> .SH "SEE ALSO" <\fIhttps://github\.com/tj/git\-extras\fR> .P <\fIhttps://stackoverflow\.com/questions/16937359/git\-copy\-file\-preserving\-history/44036771#44036771\fR>