Skip to main content

Command line helper to Git split one file into several preserving history

Project description

https://github.com/idlesign/gitfilesplit

release lic ci coverage

Description

Command line helper to Git split one file into several preserving history

Split myhugefile.py into three: smaller.py, another.py and some.py using command line:

$ gitfilesplit myhugefile.py smaller.py another.py some.py

The same in Python:

from gitfilesplit.toolbox import split

split(
    source='myhugefile.py',
    # And with subdirectories:
    targets=['smaller.py', 'sub1/another.py', 'sub2/some.py']
)

Under the hood it will create several branches in which source file is moved to target locations. After that octopus merge of these branches will be performed and temporary branches removed.

Requirements

  • Git
  • Python 3.6+

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gitfilesplit, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size gitfilesplit-0.2.0-py2.py3-none-any.whl (5.2 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size gitfilesplit-0.2.0.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page