Skip to content

idlesign/gitfilesplit

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

gitfilesplit

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+

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages