Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/idlesign/gitfilesplit
Command line helper to Git split one file into several preserving history
https://github.com/idlesign/gitfilesplit
command-line git python python3 splitter
Last synced: 15 days ago
JSON representation
Command line helper to Git split one file into several preserving history
- Host: GitHub
- URL: https://github.com/idlesign/gitfilesplit
- Owner: idlesign
- License: bsd-3-clause
- Created: 2020-01-26T04:06:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-25T02:33:54.000Z (over 4 years ago)
- Last Synced: 2024-10-04T16:25:22.568Z (about 1 month ago)
- Topics: command-line, git, python, python3, splitter
- Language: Python
- Homepage: https://github.com/idlesign/gitfilesplit
- Size: 12.7 KB
- Stars: 12
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG
- Contributing: CONTRIBUTING
- License: LICENSE
Awesome Lists containing this project
README
gitfilesplit
============
https://github.com/idlesign/gitfilesplit|release| |lic| |ci| |coverage|
.. |release| image:: https://img.shields.io/pypi/v/gitfilesplit.svg
:target: https://pypi.python.org/pypi/gitfilesplit.. |lic| image:: https://img.shields.io/pypi/l/gitfilesplit.svg
:target: https://pypi.python.org/pypi/gitfilesplit.. |ci| image:: https://img.shields.io/travis/idlesign/gitfilesplit/master.svg
:target: https://travis-ci.org/idlesign/gitfilesplit.. |coverage| image:: https://img.shields.io/coveralls/idlesign/gitfilesplit/master.svg
:target: https://coveralls.io/r/idlesign/gitfilesplitDescription
-----------*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:
.. code-block::
$ gitfilesplit myhugefile.py smaller.py another.py some.py
The same in Python:
.. code-block::
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+