I\'m trying to test something on a wordpress install. In doing so, I\'d like to quickly replicate the repo. However, the upload directory (wp-content/uploads
) i
On the server:
git checkout master^0 # the ^0 checks out the commit itself, not the branch
git filter-branch --tree-filter 'git rm -r wp-content/uploads' HEAD
git checkout -b filtered
(filter-branch on a big project here generates new history at about 2-3 commits per second)
Then, anywhere you like,
git init
git remote add gimme your://repo/path
git fetch gimme filtered
edit: fixed syntax errors according to http://git-scm.com/docs/git-filter-branch