Thread (1 message) 1 message, 1 author, 2016-06-15

Re: What about git cp ?

From: Remi Vanicat <hidden>
Date: 2016-06-15 22:44:09

"Francis Moreau" [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help