Re: What about git cp ?
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Feb 3, 2008, 18:46 UTC
- Message-ID
- <vpq63x5swsj.fsf@bauges.imag.fr>
- In-Reply-To
- <38b2ab8a0802031023y2ed7a5aax6d3c404b08757a4d@mail.gmail.com>
"Francis Moreau" <francis.moro@gmail.com> writes:
Show 6 quoted lines
> Hello, > > I'm looking for a something which could be done by a git-cp command. > > I'd like to copy a file with its history to a new file but want to keep the old > one,
Git doesn't _record_ copies and renames, but detects them after-the-fact (either by default, or explicitly like "git blame -C" or so).
So, just "cp + git add" and you're done. That's what a "git cp" command would do if it existed.
-- Matthieu