CLI commands to help using git more convenient.
Project description
Git Short
A simplified set of CLI commands for using git that I find convenient. Aimed at reducing the toil of using git. Best suited for single developer repos.
If you have any suggestions for new commands or changes, please let me know.
Installation
pip install git-short
Commands
gsave [message]
Save changes with auto-generated or custom commit message.
gsave- Auto-generates commit message from diffgsave "Custom commit message"- Uses your custom message
gpush
Push commits to remote repository on current branch.
gsquash [message] [--count,-c]
Squash unpushed commits into one commit.
gsquash- Squash all unpushed commitsgsquash "Squash message"- Squash with custom messagegsquash 3- Squash only the last 3 unpushed commitsgsquash --count 3- Squash only the last 3 unpushed commits
greset [count] [--count,-c] [--hard,-h]
Reset commits (soft by default).
greset- Soft reset 1 commitgreset 3- Soft reset 3 commitsgreset --count 5- Soft reset 5 commitsgreset --count 2 --hard- Hard reset 2 commits
gstash
Stash current changes.
gpop
Pop most recent stash.
gclear
Clear all stash entries.
gpull
Stash changes, pull from remote, then restore stashed changes.
Requirements
- Python 3.7+
- Remote repository set up (origin)
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file git_short-1.0.1.tar.gz.
File metadata
- Download URL: git_short-1.0.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfaaf831dedde41e0c8b13a21e55c3d8cfd4a1af1b567f11c1b036b33ebdac9c
|
|
| MD5 |
873ebc62d89c3d142c85c6701a274aa1
|
|
| BLAKE2b-256 |
6cb696e6d1285b1f3b1e4b34ac742ab8a637edcc7fc31892263270b4656a9fa8
|
File details
Details for the file git_short-1.0.1-py3-none-any.whl.
File metadata
- Download URL: git_short-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7140b7ff9bad247ab9e78c8a2380b333cd5e52d1544f982dd952dbdc8e5b3b3e
|
|
| MD5 |
c11ddbef189c1c399ccf3fed02fdd714
|
|
| BLAKE2b-256 |
8b76390312348a49a2b4b20bf68c2ba3479a97888089bdbc2108b0809be4d36a
|