[commits] [Wiki] changed: Project/SplitGitRepo
Michael Slusarz
slusarz at horde.org
Thu Jun 20 05:12:21 UTC 2013
slusarz Wed, 19 Jun 2013 23:12:21 -0600
Modified page: http://wiki.horde.org/Project/SplitGitRepo
New Revision: 3
Change log: When cloning, can just work with bare repo
@@ -46,9 +46,9 @@
As far as splitting the repo, I can verify the following process
works. It is necessary to do ALL the steps - {{git filter-branch}} is
not enough as it leaves the Git repo still containing all the old
references (i.e. the Git repo is still 150 MB).
<code>
# This command is best done on the same machine as a copy of the
Horde repo, to cut down on network usage
-git clone [repo] [newrepo]
+git clone --bare [repo] [newrepo]
cd [newrepo]
git remote rm origin
@@ -64,11 +64,11 @@
# At this point, the git pack is still humongous (150MB). These
steps are necessary to trim the fat:
cd ..
# file:// is necessary! Hardlinking won't work!
-git clone file://[newrepo] [newrepo2]
+git clone --bare file://[newrepo] [newrepo2]
-# newrepo2 now contains the trimmed version of the git repo (a couple
of MB vs. ~150 MB)
+# newrepo2 now contains the trimmed, bare version of the git repo (a
couple of MB vs. ~150 MB)
</code>
++ Resources
More information about the commits
mailing list