git-x - a set of handy git extensions.
Project description
git-x - a set of handy git extensions.
Installation
pip install git-x
Execution
Show help message
Run
git-x
, or ignore the - in git-x:
git x
It will output the help message:
$ git x
Usage: git-x [OPTIONS] COMMAND [ARGS]...
Options:
-h Show this message and exit.
Commands:
a Add files to the index
amend Amend files into repository
b Show current branch name
ci Commit all the indexed files
cia Add files into index and commit
co Check out branch <branch>, create if '-b' is True and the branch
doesn't exist.
llg Show recent <number> logs(5 by default)
m Merge codes from branch <from>
p Same as [git pull --rebase]
pr Create pull request from current branch to <to_branch>
st Show file status
up Create remote branch
Note: If you have an exe like git-x.exe in windows, or git-x.sh in linux or mac, you can run the command with git x directly. This is handled by git.
Run commands
git-x includes a list of commands, let’s take st as an example:
There are several ways to run the command:
1. Run with git-x
Run
git x st -h
Or,
.. code-block:: sh
git-x sh -h
It will output the help docof sh command:
$ git x st -h
Usage: git-x st [OPTIONS]
Show file status, same as 'git status'
Options:
-h Show this message and exit.
2. Run with git-
You may see that in the Usage line, it shows git-st, which means that you can run the commands listed above with git-:
git-st -h
It will output the same result:
$ git-st -h
Usage: git-st [OPTIONS]
Show file status, same as 'git status'
Options:
-h Show this message and exit.
3. Run with git
As mentioned above, we can also run the command with git directly.
git st -h
It will do the same as git x sh -h or git-x sh -h.
Notice:
You may know that you can add git alias in the git config file. If you have the same alias added, the alias will not be invoked:
[alias] st=
status
You need to install git cli tool first, as all the commands will call the native git commands eventually.
Finally, happy git-ing with git-x.
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 Distributions
Built Distribution
Hashes for git_x-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c688f17c0868b6f1125b142360463f889497ab06f486e65a59b644730368313 |
|
MD5 | 13691d2317dcbdf954a3ca269ac826bc |
|
BLAKE2b-256 | 4c28c42bf728e07b46b10f13f2bc53702b6e0191b0e4c0b5933a5eb467f06637 |