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 callka...@gmail.com 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 Konstantin Khomoutov
On Tue, 26 May 2015 22:24:25 +0530 Kalpa Welivitigoda callka...@gmail.com 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

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 flatw...@users.sourceforge.net wrote: On Tue, 26 May 2015 22:24:25 +0530 Kalpa Welivitigoda callka...@gmail.com wrote: [...] Thanks for all the support rendered. I tried the above method and it places the directory from repoB to the

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 flatw...@users.sourceforge.net wrote: On Sat, 23 May 2015 23:02:46 +0530 Kalpa Welivitigoda callka...@gmail.com wrote: [...] Use the `git subtree` command [*]. [...] To elaborate, a pseudocode (assuming a POSIX shell) is something

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 callka...@gmail.com 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: [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 flatw...@users.sourceforge.net wrote: On Fri, 22 May 2015 14:19:08 +0300 Konstantin Khomoutov flatw...@users.sourceforge.net wrote: [...] Say we have two git repositories repoA and repoB with the following directory structure repoA

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 callka...@gmail.com 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

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 callka...@gmail.com 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

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 flatw...@users.sourceforge.net 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