0.0
A long-lived project that still receives updates
Extract code from one repository into a new repository, preserving history of the extracted files.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

extract-repo

Extracts files from one repository into a new repository, preserving complete git history of the extracted files.

Usage

Pass the repo to extract code from and a list of directories/files to extract from that repo.

$ ./bin/extract-repo  some_file.rb some/directory/to/extract/
extract-repo --delete-extracted --repo-url-or-path git@github.com:org/repo.git --output-path new/repo/path --paths some/dir some/file.ext some/other/dir 

Results will wind up in ~/tmp/extract/ if you don't specify an --output-path

--delete-extracted will delete any files in the source repo that you extracted to the new repo.

License

extract-repo is licensed under your choice of the Apache License 2.0 or the MIT license. See LICENSE.txt for more info about licensing.