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.

Source Distribution

gitfilesplit-1.0.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitfilesplit-1.0.0-py2.py3-none-any.whl (5.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file gitfilesplit-1.0.0.tar.gz.

File metadata

  • Download URL: gitfilesplit-1.0.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for gitfilesplit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6dc33d99177145f5b3f9a3fe65082f2d493bb5b3b0d6a5ac847c061a57867e12
MD5 e6c4f9219fa014bdeaac055503f526f4
BLAKE2b-256 10aff41d9a33f44dfbbbcee8c6ab0d0772d0b51b832902872c577d74f5ffae71

See more details on using hashes here.

File details

Details for the file gitfilesplit-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for gitfilesplit-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f2bd3acae8ebc2146e77f30f941d27359b0d558603e0e885e7e454f5076e5cca
MD5 43a23d4d408dd86d9e85f33ac86d39cb
BLAKE2b-256 a64afe296c27c9d5649ac0ef07b78b6cb43e49891815a2fbf48ddae17c995121

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page