From: Remi Vanicat <vanicat@debian.org>
To: "Francis Moreau" <francis.moro@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: What about git cp ?
Date: Sun, 03 Feb 2008 19:55:14 +0100 [thread overview]
Message-ID: <87hcgplvjh.dlv@maison.homelinux.org> (raw)
In-Reply-To: <38b2ab8a0802031023y2ed7a5aax6d3c404b08757a4d@mail.gmail.com> (Francis Moreau's message of "Sun\, 3 Feb 2008 19\:23\:12 +0100")
"Francis Moreau" <francis.moro@gmail.com> writes:
> 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
prev parent reply other threads:[~2008-02-03 19:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-03 18:23 What about git cp ? Francis Moreau
2008-02-03 18:46 ` Matthieu Moy
2008-02-03 19:07 ` Jakub Narebski
2008-02-10 1:12 ` [RFC/PATCH] Implement git-cp Miklos Vajna
2008-02-10 1:26 ` Johannes Schindelin
2008-02-10 7:49 ` Junio C Hamano
2008-02-10 12:33 ` Johannes Schindelin
2008-02-10 12:42 ` Miklos Vajna
2008-02-10 13:29 ` Robin Rosenberg
2008-02-11 1:30 ` Jakub Narebski
2008-02-11 10:18 ` Matthieu Moy
2008-02-11 13:43 ` Miklos Vajna
2008-02-10 18:24 ` [PATCH] " Miklos Vajna
2008-02-03 18:55 ` Remi Vanicat [this message]
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=87hcgplvjh.dlv@maison.homelinux.org \
--to=vanicat@debian.org \
--cc=francis.moro@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.