Re: [git-users] moving a directory from one repo to another with commit history

2015-05-27 Thread Konstantin Khomoutov
On Tue, 26 May 2015 23:43:43 +0530 Kalpa Welivitigoda wrote: [...] > >> Following is the output of $ git log --all --graph --decorate > >> --oneline > >> > >> * 9c97cd4 (HEAD, master) Merge tag 'tags/Bdir12' > >> |\ > >> | * af56821 (tag: Bdir12) updating dir1-2 > >> | * d0b8f8a adding dir1-2 >

Re: [git-users] moving a directory from one repo to another with commit history

2015-05-26 Thread Kalpa Welivitigoda
On Tue, May 26, 2015 at 11:37 PM, Konstantin Khomoutov wrote: > On Tue, 26 May 2015 22:24:25 +0530 > Kalpa Welivitigoda wrote: > > [...] >> >> Thanks for all the support rendered. I tried the above method and >> >> it places the directory from repoB to the correct place on repoA. >> >> But if I l

Re: [git-users] moving a directory from one repo to another with commit history

2015-05-26 Thread Konstantin Khomoutov
On Tue, 26 May 2015 22:24:25 +0530 Kalpa Welivitigoda wrote: [...] > >> Thanks for all the support rendered. I tried the above method and > >> it places the directory from repoB to the correct place on repoA. > >> But if I log the commits for dir1-2 in repoA (git log > >> dir1/dir1-2), it shows o

Re: [git-users] moving a directory from one repo to another with commit history

2015-05-26 Thread Kalpa Welivitigoda
On Mon, May 25, 2015 at 5:30 PM, Konstantin Khomoutov wrote: > On Sat, 23 May 2015 23:02:46 +0530 > Kalpa Welivitigoda wrote: > > [...] >> >> Use the `git subtree` command [*]. >> > [...] >> > >> > To elaborate, a pseudocode (assuming a POSIX shell) is something >> > like this: >> > >> > $ cd r

Re: [git-users] moving a directory from one repo to another with commit history

2015-05-25 Thread Konstantin Khomoutov
On Sat, 23 May 2015 23:02:46 +0530 Kalpa Welivitigoda wrote: [...] > >> Use the `git subtree` command [*]. > > [...] > > > > To elaborate, a pseudocode (assuming a POSIX shell) is something > > like this: > > > > $ cd repoB > > $ git tag Bdir12 $(git subtree split dir1-2) > > > > $ cd ../re

Re: [git-users] moving a directory from one repo to another with commit history

2015-05-23 Thread Kalpa Welivitigoda
On Fri, May 22, 2015 at 4:57 PM, Konstantin Khomoutov wrote: > On Fri, 22 May 2015 14:19:08 +0300 > Konstantin Khomoutov wrote: > > [...] >> > Say we have two git repositories repoA and repoB with the following >> > directory structure >> > >> > repoA >> > --dir1 >> > -- dir1-1 >> > -- d

Re: [git-users] moving a directory from one repo to another with commit history

2015-05-22 Thread Konstantin Khomoutov
On Fri, 22 May 2015 14:19:08 +0300 Konstantin Khomoutov wrote: [...] > > Say we have two git repositories repoA and repoB with the following > > directory structure > > > > repoA > > --dir1 > > -- dir1-1 > > -- dir1-3 > > --dir2 > > > > repoB > > --dir1-2 > > > > I need to move the

Re: [git-users] moving a directory from one repo to another with commit history

2015-05-22 Thread Konstantin Khomoutov
On Fri, 22 May 2015 04:04:43 -0700 (PDT) Kalpa Welivitigoda wrote: > My question is basically moving a directory from one git repo to > another with the commit history for that directory. Let me elaborate > more. > > Say we have two git repositories repoA and repoB with the following > director

Re: [git-users] moving a directory from one repo to another with commit history

2015-05-22 Thread Magnus Therning
On 22 May 2015 at 13:04, Kalpa Welivitigoda wrote: > Hi, > > My question is basically moving a directory from one git repo to another > with the commit history for that directory. Let me elaborate more. > [...] > > How can I achieve this? Are there any other alternative ways that I can > achieve a

[git-users] moving a directory from one repo to another with commit history

2015-05-22 Thread Kalpa Welivitigoda
Hi, My question is basically moving a directory from one git repo to another with the commit history for that directory. Let me elaborate more. Say we have two git repositories repoA and repoB with the following directory structure repoA --dir1 -- dir1-1 -- dir1-3 --dir2 repoB --di