A git add/commit/push helper
Project description
git-commitflow - A git add/diff/commit/push helper
The git-submit
command-line tool enhances the process of staging (git add
), diff (git diff
), committing (git commit
), and pushing (git push
) in a Git repository.
Installation
Here is how to install git-commitflow
using pip:
sudo pip install git+https://github.com/jamescherti/git-commitflow
The pip command above will install the git-commitflow
executable in the directory ~/.local/bin/
.
Usage
Example usage
To use the tool within your Git repository, run:
git commitflow
This command will guide you through the following steps interactively:
- Stage untracked files: Prompts you to
git add
any untracked files that haven't been staged. - Review changes: Displays a diff of your changes, allowing you to confirm whether you want to proceed with the commit.
- Commit changes: Once you validate your commit message, the tool will finalize the commit.
If you also wish to push the changes, you can use the --push
option:
git commitflow --push
This will git add, diff, commit, push your changes to the remote repository after the commit.
Command-line arguments
usage: git-commitflow [--option] [args]
Readline manager.
options:
-h, --help show this help message and exit
-p, --push Git push after a successful commit
-r, --recursive Apply git-commitflow to all submodules
License
Copyright (c) 2020-2024 James Cherti
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Links
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
Built Distribution
File details
Details for the file git-commitflow-1.0.0.tar.gz
.
File metadata
- Download URL: git-commitflow-1.0.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf610a5cd1153f9b3c43663ce45499c3f3a672e1f0a343a6179ff01974271ed0 |
|
MD5 | 27e13224a1f0ebcbca16f228341c1e7f |
|
BLAKE2b-256 | 3891538fcea2c6f6659599b222dd65357dd315e2e46569aa8d19ac1edf654133 |
File details
Details for the file git_commitflow-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: git_commitflow-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a3406f7063caf751d9de3aa6b6b888889c88638783d133912f5af218c3dd81d |
|
MD5 | 292a3780cc70a95a7068bc62967061c9 |
|
BLAKE2b-256 | 3f65e843ea20bd2ec7b90540a4df0c7ab7b17d6bcf77d762e237fbef09b1fcbb |