Skip to main content

CLI commands to help using git more convenient.

Project description

Short Git

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 short-git

Commands

gsave [message]

Save changes with auto-generated or custom commit message.

  • gsave - Auto-generates commit message from diff
  • gsave "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 commits
  • gsquash "Squash message" - Squash with custom message
  • gsquash 3 - Squash only the last 3 unpushed commits
  • gsquash --count 3 - Squash only the last 3 unpushed commits

greset [count] [--count,-c] [--hard,-h]

Reset commits (soft by default).

  • greset - Soft reset 1 commit
  • greset 3 - Soft reset 3 commits
  • greset --count 5 - Soft reset 5 commits
  • greset --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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git_short-1.0.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

git_short-1.0.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file git_short-1.0.0.tar.gz.

File metadata

  • Download URL: git_short-1.0.0.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

Hashes for git_short-1.0.0.tar.gz
Algorithm Hash digest
SHA256 50a0447130e9a2b8068f93d20d6a4d6e9f4591897b3cf710b3e797328a2945a9
MD5 d8f0086c03648fb0c88fa82de384a852
BLAKE2b-256 1eb4bb0b5994540e54e629237a1357ede9fa6c49f4e61fbb136fbc44b3c37e16

See more details on using hashes here.

File details

Details for the file git_short-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: git_short-1.0.0-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

Hashes for git_short-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79f1e6404fffbe1202383be46c95966d114e4121ad557d75120aa0664b446bbf
MD5 9a3dd18942849ad5939f86e1528843b7
BLAKE2b-256 54d81a5d762c4ecf27487a2d8ce89799ab151ddd689c89df842b73aa4350f256

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page