Skip to main content

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 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.1.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.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

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

Hashes for git_short-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dfaaf831dedde41e0c8b13a21e55c3d8cfd4a1af1b567f11c1b036b33ebdac9c
MD5 873ebc62d89c3d142c85c6701a274aa1
BLAKE2b-256 6cb696e6d1285b1f3b1e4b34ac742ab8a637edcc7fc31892263270b4656a9fa8

See more details on using hashes here.

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

Hashes for git_short-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7140b7ff9bad247ab9e78c8a2380b333cd5e52d1544f982dd952dbdc8e5b3b3e
MD5 c11ddbef189c1c399ccf3fed02fdd714
BLAKE2b-256 8b76390312348a49a2b4b20bf68c2ba3479a97888089bdbc2108b0809be4d36a

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