Skip to content

Instantly share code, notes, and snippets.

@gitcos
gitcos / gist:2219596b4445b9b26dc8406bcbd0fd3c
Last active August 12, 2022 19:16
Splitting or Combining Repositories Preserving Change History
git-filter-repo is a tool that makes it easy to select subsets of commits in a Git repository and rewrite their paths,
which makes it easy to move folders between repos while preserving their commit histories.
https://github.com/newren/git-filter-repo
It is a single-file python script which can be installed with pip or brew; for more installation info, see the documentation.
# Splitting a subdirectory into a separate repo
Scenario: You want to take subdirectory some_project/ out of repo orgname/oldrepo and create a new repo orgname/some_project.
@gitcos
gitcos / keybase.md
Created May 20, 2020 21:30
keybase.md

Keybase proof

I hereby claim:

  • I am gitcos on github.
  • I am cos_ (https://keybase.io/cos_) on keybase.
  • I have a public key ASDrrLAmNy4cGoRS3JgXsS_gVUFes3R3k0nTJ60OFYiewwo

To claim this, I am signing this object: