From: Shrikant Prasad <sprasad@zimbra.com>
To: git@vger.kernel.org
Subject: Issue with subtree split in git version post 2.7.X on MAC
Date: Thu, 16 Jun 2016 02:26:54 -0500 (CDT) [thread overview]
Message-ID: <1421824581.98623.1466062014054.JavaMail.zimbra@zimbra.com> (raw)
Hi,
I am trying to extract part of larger git repo to create a new smaller repo maintaining al the history of the extracted portion. For this I used git subtree split command.
Following are the steps followed:
1. git clone of full repo in 'full_rep' dir
2. Initialised new empty target repo:
mkdir new_repo
cd new_repo
git init
3. split the desired subtree into a new branch:
cd ../full_repo
git subtree split --prefix='folder_name_to_be_extracted' --annotate="(split)" -b new-repo
4. pull the new branch into the new empty repo:
cd ../new_repo
git pull ../full_repo new-repo:master
5. check size of the new repo : du -sh .
With git version 2.8.4 on Mac EL Capitan OS, size of repo is coming out to be 117M and also the history of new repo is not specific to the extracted portion only. Its containing commits from different folders too.
Whereas with git version 2.5.5, size of repo comes tout to be 9.5M and history of new repo is correct, containing only extracted portion commits history.
Please check if there is some issue with git version 2.8.4 on mac while running subtree split.
Regards,
Shrikant Prasad
reply other threads:[~2016-06-16 7:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1421824581.98623.1466062014054.JavaMail.zimbra@zimbra.com \
--to=sprasad@zimbra.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).