gitone package

Submodules

gitone.spa module

gitone.spa.spa() → None[source]

Stash local changes, pull with --rebase, and apply local changes.

Note

Use spa() if you try to pull with --rebase and get an error that says:

error: cannot pull with rebase: You have unstaged changes.
error: please commit or stash them.

With spa() the stash is preserved. Use git stash drop to remove the most recent stash.

gitone.spp module

gitone.spp.spp() → None[source]

Stash local changes, pull with --rebase, and pop the latest stash.

Note

Use spp() if you try to pull with --rebase and get an error that says:

error: cannot pull with rebase: You have unstaged changes.
error: please commit or stash them.

With spp() the stash is not preserved, so there is not need to use git stash drop to remove the most recent stash.

Module contents

gitone: a Python package that facilitates git version control.

gitone.camp(message: Optional[str] = None) → None[source]

Add and commit all changes made to tracked files, then push the commit.

Parameters

message – The commit message to be passed to the git commit command.

Note

A commit message will be automatically generated if the message argument is not provided.

gitone.acmp(message: Optional[str] = None) → None[source]

Add and commit all changes, then push the commit.

Parameters

message – The commit message to be passed to the git commit command.

Note

A commit message will be automatically generated if the message argument is not provided.

gitone.cam(message: Optional[str] = None) → None[source]

Commit all changes made to tracked files.

Parameters

message – The commit message to be passed to the git commit command.

Note

A commit message will be automatically generated if the message argument is not provided.

gitone.acm(message: Optional[str] = None) → None[source]

Add and commit all changes.

Parameters

message – The commit message to be passed to the git commit command.

Note

A commit message will be automatically generated if the message argument is not provided.

gitone.amend(message: Optional[str] = None) → None[source]

Amend the previous commit with changes made to tracked files.

Parameters

message – The commit message to be passed to the git commit command.

Note

The previous commit message will be reused if the message argument is not provided.

gitone.amendp(message: Optional[str] = None) → None[source]

Amend the previous commit with changes made to tracked files, then push.

Parameters

message – The commit message to be passed to the git commit command.

Note

The previous commit message will be reused if the message argument is not provided.

gitone.aamend(message: Optional[str] = None) → None[source]

Amend the previous commit with any new changes.

Parameters

message – The commit message to be passed to the git commit command.

Note

The previous commit message will be reused if the message argument is not provided.

gitone.aamendp(message: Optional[str] = None) → None[source]

Amend the previous commit with any new changes, then push the commit.

Parameters

message – The commit message to be passed to the git commit command.

Note

The previous commit message will be reused if the message argument is not provided.