[MacPorts] WorkingWithGitSVN modified

MacPorts noreply at macports.org
Sat Oct 24 13:17:39 PDT 2015


Page "WorkingWithGitSVN" was changed by cal at macports.org
Diff URL: <https://trac.macports.org/wiki/WorkingWithGitSVN?action=diff&version=9>
Revision 9
Comment: += git-filter-branch(1)
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: WorkingWithGitSVN
=========================================================================
--- WorkingWithGitSVN (version: 8)
+++ WorkingWithGitSVN (version: 9)
@@ -106,3 +106,9 @@
 With the current git mirror everyone interested in base is also required to fetch the trees for dports/, doc/ and doc-new/, and www/. Also, all branches for base are missing.
 
 For disk space and usability reasons, a separate repository might be easier to handle, especially when you can just add that to sources.conf. Note we already have contrib/ and users/ as separate repositories.
+
+Given your Git repository, you can use `git filter-branch(1)` to remove all history but that in a subdirectory. Note that you should do this on a copy of your repository. For example, to split www from the rest of the repository, use
+
+{{{
+git filter-branch --subdirectory-filter www --prune-empty -- --all
+}}}
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/WorkingWithGitSVN>
MacPorts <https://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'WorkingWithGitSVN' page.
If it was not you, please report to .


More information about the macports-changes mailing list