{"thread":{"id":"42633","subject":"Issue with subtree split in git version post 2.7.X on MAC","startedAt":"2016-06-16T19:57:41Z","lastAt":"2016-06-16T19:57:41Z","messageCount":1,"participants":["Shrikant Prasad"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"289390","messageId":"1421824581.98623.1466062014054.JavaMail.zimbra@zimbra.com","threadId":"42633","inReplyTo":null,"subject":"Issue with subtree split in git version post 2.7.X on MAC","fromName":"Shrikant Prasad","fromEmail":"sprasad@zimbra.com","sentAt":"2016-06-16T07:26:54Z","receivedAt":"2016-06-16T19:57:41Z","isPatch":false,"sender":{"key":"sprasad@zimbra.com","avatar":null},"body":"Hi,\n\nI 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.\n\nFollowing are the steps followed: \n1. git clone of full repo in 'full_rep' dir\n2. Initialised new empty target repo: \n    mkdir new_repo\n     cd new_repo\n     git init\n\n3. split the desired subtree into a new branch:\n    cd ../full_repo\n    git subtree split --prefix='folder_name_to_be_extracted' --annotate=\"(split)\" -b new-repo\n\n4. pull the new branch into the new empty repo: \n    cd ../new_repo\n    git pull ../full_repo new-repo:master\n\n5. check size of the new repo : du -sh .\n\nWith 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.\n\nWhereas 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.\n\nPlease check if there is some issue with git version 2.8.4 on mac while running subtree split.\n\nRegards,\nShrikant Prasad\n"}]}