Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: Adding History

From: John Tapsell <hidden>
Date: 2016-06-15 22:46:25

2009/3/19 Shawn O. Pearce [off-list ref]:
Roger Garvin [off-list ref] wrote:
quoted
Is there a way to add history to a repository?
We have just started using git, where before we had nothing but backup
directories all over the place.  We created the git repository using our
existing source directory.  Is there a way to now go and add some of the backup
source directories to the history?  Or would this break all the SHA1 of the
current objects?
Right, you need to change the SHA-1 of all of the commits in order
to insert history in the past.
quoted
I am not sure it would be worth it at this point.  But we are
still pretty early in our use of git so now would be the easiest time.
You have two options:
Couldn't you just create import the whole tree and then rebase on top of it?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help