Feature #9174: Migrate our blueprints out of tails.git and tails.boum.org
Create a Git repo with only the history and content of /blueprint
This involves creating a new Git repo that:
1. Only contains the blueprint directorie's content.
2. Inherits the current Git repo's history for that content, and nothing else.
git-filter-branch(1) should be a good start.
To rewrite the repository to look as if foodir/ had been its project root, and discard all other history:
git filter-branch --subdirectory-filter foodir -- --all
#5 Updated by sajolida over 4 years ago
- Status changed from Confirmed to Resolved
- Assignee deleted (
I managed to do that with the following set of commands (could probably be refined):
git remote | while read remote ; do git remote rm $remote ; done git branch | grep -v "\smaster" | while read branch ; do git branch -D $branch ; done git tag | while read tag ; do git tag -d $tag ; done git filter-branch --subdirectory-filter wiki/src/blueprint -- --all git update-ref -d refs/original/refs/heads/master git reflog expire --expire=now --all git gc --aggressive --prune=now