Custom git shell to type less and commit more.
Project description
gitbetter
Custom git shell to type less and commit more.
Installation
Install with:
pip install gitbetter
Usage
Launch from a terminal by entering gitbetter
.
Type help
or ?
for a list of commands.
Type help {command}
for detailed help with a specific command.
>gitbetter Starting gitbetter... Enter 'help' or '?' for command help. gitbetter>help Documented commands (type help ): ======================================== add commitall help make_public pull_branch undo add_url commitf ignore merge push amend cwd initcommit new_branch push_new cd delete_branch list_branches new_gh_remote quit cmd delete_gh_repo loggy new_repo switch commit git make_private pull tag gitbetter>help commitf Stage and commit a list of files. Parser help for commitf: usage: gitbetter [-h] -m MESSAGE [-r] [files ...] positional arguments: files List of files to stage and commit. options: -h, --help show this help message and exit -m MESSAGE, --message MESSAGE The commit message to use. -r, --recursive If a file name is not found in the current working directory, search for it in subfolders. This avoids having to type paths to files in subfolders, but if you have multiple files in different subfolders with the same name that have changes they will all be staged and committed. gitbetter>help loggy Execute `git --oneline --name-only --abbrev-commit --graph`. gitbetter>loggy * 3e780ec (HEAD -> main, tag: v1.0.0) Merge branch 'my-feature' |\ | * b4478a3 feat: new print statement | | test.py * | eb89c2e docs: update readme |/ | README.md * fc6b7ac (origin/main) docs: update readme | README.md * 2a75c0c docs: added a comment | test.py * d22129a feat: new print statement | gitbetter_test.py * 1a002d7 chore: add items to ignore | .gitignore * 92cb7e7 Initial commit .gitignore LICENSE.txt README.md gitbetter_test.py test.py test.txt
Bindings can be accessed programmatically:
>>> from gitbetter import git >>> git.loggy() * 3e780ec (HEAD -> main, tag: v1.0.0) Merge branch 'my-feature' |\ | * b4478a3 feat: new print statement | | test.py * | eb89c2e docs: update readme |/ | README.md * fc6b7ac (origin/main) docs: update readme | README.md * 2a75c0c docs: added a comment | test.py * d22129a feat: new print statement | gitbetter_test.py * 1a002d7 chore: add items to ignore | .gitignore * 92cb7e7 Initial commit .gitignore LICENSE.txt README.md gitbetter_test.py test.py test.txt >>> git.list_branches() * main 3e780ec [origin/main: ahead 3] Merge branch 'my-feature' remotes/origin/main fc6b7ac docs: update readme
Future Features
- Redirect the output of git commands so the bindings return the output instead of only being able to print.
- Make pushing to remote after creating it smoother (make it so you don't manually have to add the url).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gitbetter-0.1.0.tar.gz
(74.6 kB
view hashes)
Built Distribution
Close
Hashes for gitbetter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c14d8ae051d7429edbe2f5d46aed97c3b9a38d8d5b43bfddff4aa5f193453d1d |
|
MD5 | 86e72ae635601b1c77eadcc3a3aa1c2b |
|
BLAKE2b-256 | ee567dd2f906d5481150cf18c3e95b9dca2626ac2b25cac69c78ce0a985356bb |