Skip to main content

Extract code, markdown, and yaml files from R markdown.

Project description

Combine multiple git version controls steps into one command.

PyPI Updates

Introduction

Unlike git shell commands, gitone automatically generates commit messages with every command.

The gitone Python package consists of 8 shell commands and functions:

  • cam, which stands for git commit -am, will add and commit all changes made to tracked files.

  • camp, which stands for git commit -am && git push, will add and commit all changes made to tracked files and push the commit to the remote repository.

  • acm, which stands for git add --all && git commit -m, will add and commit all changes made to all files and push the changes to the remote repository.

  • acmp, which stands for git add --all && git commit -m && git push, will add and commit all changes made to all files and push the changes to the remote repository.

and the --aamend version of the above function:

  • aamend, which is short for git commit --aamend -am, will overwrite the previous commit by adding and committing all changes made to tracked files.

  • aamendp, which is short for git commit --aamend -am && git push --force, will overwrite the previous commit by adding and committing all changes made to tracked files and then force push the overwritten commit to the remote repository.

  • aamend, which is short for git add --all && git commit --aamend -m, will overwrite the previous commit by adding and committing all changes made to all files.

  • aamendp, which is short for git add --all && git commit --aamend -m && git push --force, will overwrite the previous commit by adding and committing all changes made to all files and then force push the overwritten commit to the remote repository.

Installation

$ pip install gitone

Usage

Just run one of available shell commands or Python functions without arguments and a commit message will be automatically generated.

>>> camp()
>>> acmp()
>>> cam()
>>> acm()
$ camp
$ acmp
$ cam
$ acm

You can also pass a commit message to any of the functions or shell commands.

>>> camp(message="Made some changes.")
>>> acmp("Lemme try something.")
>>> cam("Not sure what changed.")
>>> acm("Should be OK now.")
$ camp Made some changes.
$ acmp Lemme try something.
$ cam Not sure what changed.
$ acm Should be OK now.

To overwrite the previous commit, you can use the aamend functions.

If you do not provide a commit message, the previous commit message will be reused.

>>> aamend()
>>> aamendp()
>>> aamend()
>>> aamendp()
$ aamend
$ aamendp
$ aamend
$ aamendp

History

0.0.1 (2018-12-11)

  • First release on PyPI.

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

gitone-0.0.26.tar.gz (335.5 kB view hashes)

Uploaded Source

Built Distribution

gitone-0.0.26-py2.py3-none-any.whl (12.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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