From dde0965553ce0362ace42285f644b6c7448cfa39 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 22 Mar 2022 16:21:51 -0700 Subject: [PATCH] Link to the repo I created --- git/rewrite-repo-specific-files.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/rewrite-repo-specific-files.md b/git/rewrite-repo-specific-files.md index fbd3f5960c..53e83105cc 100644 --- a/git/rewrite-repo-specific-files.md +++ b/git/rewrite-repo-specific-files.md @@ -1,6 +1,6 @@ # Rewriting a repo to contain the history of just specific files -I wanted to start a new git repository containing just the history of two specific files from my [help-scraper repository](https://github.com/simonw/help-scraper). +I wanted to start [a new git repository](https://github.com/simonw/graphql-scraper/tree/828a1efc4307cca6cd378c394c2d33eac2eceb52) containing just the history of two specific files from my [help-scraper repository](https://github.com/simonw/help-scraper). I started out planning to use `git filter-branch` for this, but got put off when [this StackOverflow thread](https://stackoverflow.com/questions/2982055/detach-many-subdirectories-into-a-new-separate-git-repository) started talking about the need to understand the differences between macOS `sed` and regular GNU `sed`.