threads / discuss / 53175

git cp command?

Subject: git cp command?

## tl;dr

One message between Apr 7, 2020 and Apr 7, 2020.

replies: 0people: 1as markdown or json

Jeffrey Walton· Apr 7, 2020, 06:02 UTC · lore

I have a large source file and I want to split it into two pieces. I want to preserve the history so someone can start at either of the copies and work back to the original file.

I see folks talking about a "git copy" at https://stackoverflow.com/a/44036771, but I am not really following what is happening with moves and merges and the other extra commands.

Can someone please provide the commands to copy the file using Git.
Thanks in advance.

← back to recent threads