Skip to main content

This command makes it easy to git add / commit /push and auto-increment tagging.

Project description

Python 3.9 Python 3.8 Python 3.7 Python 3.6 Python 3.5 License: MIT

gnow

A wrapper command to make git add/commit/push and tagging easier.

Installation

$ pip install gnow

Usage

Status

$ gnow -s

{CURRENT_BRANCH} ({CURRENT_TAG})
-----------------
 Working tree
 - No files.
 Index
 - No files.
 Unpushed commit
 - No commits.
-----------------

git add -> git commit -> git push

# Auto commit message
$ gnow

# Manual commit message
$ gnow 'YOUR COMMIT MESSAGE'

main (1.1.1)
---------------------
 Working tree
 - Updated README.md
 Index
 - No files.
 Unpushed commit
 - No commits.
---------------------
ADD files to the index? [n/Y or Enter]
STAGING done. ✔

COMMIT MESSAGE: Updated README.md
BRANCH: main
COMMIT the index contents? [n/Y or Enter]
COMMIT done. ✔

BRANCH: main
PUSH local commits? [n/Y or Enter]
PUSH done. ✔

git commit

This operation is the same as git commit.

# Auto input (Make the commit message the status of the file)
$ gnow -c

# Manual input
$ gnow -c 'YOUR COMMIT MESSAGE'

ADD files to the index? [n/Y or Enter]
STAGING done. ✔

COMMIT MESSAGE: Updated README.md
BRANCH: main
COMMIT the index contents? [n/Y or Enter]
COMMIT done. ✔

Tagging

This command supports tags in vX.Y.Z format. The leading v is auto-filled. You only have to specify X.Y.Z.

# Auto input (Automatically increments the patch version)
$ gnow -t
Latest tag is 1.0.1
New tag is 1.0.2
TAG the latest commit? [n/Y or Enter]

# Manual input
$ gnow -t 1.0.0
Latest tag is 0.0.6
New tag is 1.0.0
TAG the latest commit? [n/Y or Enter]

# When there are no tag settings
$ gnow -t
No tags are currently.
Auto incremented version is 0.0.1
TAG the latest commit? [n/Y or Enter]

Changelog

  • 2021-07-09 Start porting to Python
  • 2020-07-09 Published a bash script version on Github

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

gnow-1.0.0.tar.gz (6.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: gnow-1.0.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.6.8

File hashes

Hashes for gnow-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7cdc0f7c6db99cdd054ac3dd9fd44e63593847f53836be70512fce8667bae2e0
MD5 dda9b761a8dcb2013eb273363bb063ac
BLAKE2b-256 b002b1c73f33774acd7fd0382eded0aaafc13f10e50ba315192787fe45415425

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