You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
「AAA.git」および「BBB.git」というGitリポジトリがあり、
「BBB.git」を履歴(コミットログ)付きで「AAA.git」に統合したいと考えております。
(元々のリポジトリのデータはルートにサブフォルダを作成して移動)
【統合前ツリー】
…/AAA/master/AAA1.*
…/BBB/master/BBB1.*
【統合後ツリー】
…/AAA/master/AAA/AAA1.*
…/AAA/master/BBB/BBB1.*
上記「…/BBB/master/BBB1.*」→「…/AAA/master/BBB/BBB1.*」(履歴付き)を実現するためのSourceTreeで実現方法を教えてください。
下記手法を試しましたが実現できませんでした。
【試した内容】(ターミナル)
①リポジトリAAAをクローン
「…/AAA/AAA1.*」
②AAA直下のファイルをサブフォルダに移動させてコミット
「…/AAA/AAA/AAA1.*」
※カレントディレクトリ:.../AAA(サブフォルダのAAAではない)
③mkdir BBB
④git remote add BBB BBBのリポジトリURL
⑤git fetch BBB
⑥git merge -X subtree=BBB BBB/master --allow-unrelated-histories
この時点で
・BBBのリポジトリの内容が「…/AAA/BBB/」
にDLされる想定であったが、
・BBBのリポジトリの内容の一部が「…/AAA/」
にDLされていた。
SourceTree version 2.4.8.0
コミュニティに投稿いただきありがとうございます。
恐縮ながらSourcetreeでは該当の機能はございません。
次の記事が参考になるかと存じます。よろしければご覧ください。
https://blog.developer.atlassian.com/grafting-earlier-history-with-git
Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going. The ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.