git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeffrey Walton <noloader@gmail.com>
To: Git List <git@vger.kernel.org>
Subject: git cp command?
Date: Tue, 7 Apr 2020 02:02:38 -0400	[thread overview]
Message-ID: <CAH8yC8nzc6My_DyTJ1vyZ4zvsOiSegM01p1xsS_bABc70=SPCg@mail.gmail.com> (raw)

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.

                 reply	other threads:[~2020-04-07  6:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH8yC8nzc6My_DyTJ1vyZ4zvsOiSegM01p1xsS_bABc70=SPCg@mail.gmail.com' \
    --to=noloader@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).