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

  • 2022-01-10 Minor fix
  • 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.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

gnow-1.0.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gnow-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b21525d96571a522d66ee42a93f646947bc1cd974f6207438909e94de709bef8
MD5 f2641d82ec8894aee022ba391e2b8cb4
BLAKE2b-256 1abe4b42e58e053dbc2d5a200f9f86ff8cb6aaa9894d11706dfa417c6dea2ab4

See more details on using hashes here.

File details

Details for the file gnow-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: gnow-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac1bc98ab2f3044ed410effdb4bf061198da987b61f4c4c471d622f07b7703f1
MD5 64bbe45e8aa63b4c1080eaa542d8cbac
BLAKE2b-256 3ed5d56796a5166572e5f96d78aefd55df15c07677a372adfd010d56dda32349

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