https://github.com/blipinsk/git-split-commit
↔ A bash script which splits a git commit into multiple commits, one for each modified file.
https://github.com/blipinsk/git-split-commit
bash bash-script commit git
Last synced: 6 months ago
JSON representation
↔ A bash script which splits a git commit into multiple commits, one for each modified file.
- Host: GitHub
- URL: https://github.com/blipinsk/git-split-commit
- Owner: blipinsk
- License: mpl-2.0
- Created: 2023-05-06T20:39:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-29T11:24:12.000Z (over 2 years ago)
- Last Synced: 2025-02-10T12:31:38.554Z (8 months ago)
- Topics: bash, bash-script, commit, git
- Language: Shell
- Homepage:
- Size: 444 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

A bash script that splits a git commit into multiple commits, one for each modified file.
**Check out my [blog](https://medium.com/@blipinsk) :shipit: or say *hi* on [Twitter](https://twitter.com/blipinsk).**
How does it work?
=================
Installation
============1. Clone the repo
2. (_optional_) Install git alias```shell
./install-git-alias.sh
```Although the second step is _optional_, it is strongly advised. You can use the script directly without installing the git alias, but git alias makes it much better.
Usage
=====To split a Git commit, run the git alias for the script with the hash of the commit to split as the only argument:
```shell
Usage: git split-commit [options]
Options:
--no-push, -np Skips the offer to **force** push the original branch
--keep-temp-branch, -ktb Retains the temporary branch used to split the commit
--version, -v Prints the version of the script
--help, -h Prints this usage message
```Example
=======
Developed by
============
* Bartek LipinskiLicense
=======Copyright 2023 Bartosz Lipiński
This script is licensed under the [Mozilla Public License 2.0](LICENSE).