Skip to content

Commit

Permalink
Link to the repo I created
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Mar 22, 2022
1 parent 8bddf56 commit dde0965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git/rewrite-repo-specific-files.md
Original file line number Diff line number Diff line change
@@ -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`.

Expand Down

0 comments on commit dde0965

Please sign in to comment.