Re: What about git cp ?
- From
Remi Vanicat <vanicat@debian.org>
- Date
- Feb 3, 2008, 18:55 UTC
- Message-ID
- <87hcgplvjh.dlv@maison.homelinux.org>
- 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 don't attach history to a file, but to a content. Just do a: cp foo bar git add bar git commit -m "copying foo to bar"
And it will be done, and when needed, git will be able to know that this was a copy.
-- Rémi Vanicat