/git-subdirectory-detatch

Helper script to split a subdirectory within a repository into its own repository

Primary LanguagePython

git-subdirectory-detatch

Usage

python run.py --repo_dir="" --output_dir="" --subdirectory_path="" -new_repo=""

Arguments

  • --repo_dir
    • The path of the working repository.
  • --output_dir
    • The output directory path to clone into. Will be created if it does not already exist.
  • --subdirectory_path
    • The path of the subdirectory to isolate, relative to the root path of the repository.
  • -new_repo
    • New remote repo. (optional)