保持git存储库的最新状态
gitkit的Python项目详细描述
吉特基特
一个用于分析git存储库和github同步的工具
安装
python3 -m pip install gitkit --upgrade
测试版本
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps gitkit --upgrade
使用
gitkit [OPTIONS] COMMAND [ARGS]...
选项:
Option | Typ | Description |
---|---|---|
-t, --target-dir | TEXT | The local target/source path |
-u, --user | TEXT | The github username |
-p, --password | TEXT | The github password |
-l, --list | Print results. Does not execute any command. | |
--help | Show this message and exit. |
命令:
^{tb2}$查找选项:
Option | Description |
---|---|
-p, --private / -np, --no-private | -p = Private only, -np = Public only - Default with private and public. |
-f, --forks / -nf, --no-forks | -f = Forks only, -nf = Without forks - Default with forks. |
-o, --owner / -no, --no-owner | -o = Owned only, -no = Not owned only - Default owned and not owned. |
-d, --dirty / -nd, --no-dirty | -d = Dirty only, -nd = Clean only - Default clean and dirty. |
-a, --ahead / -na, --no-ahead | -a = local branch is ahead of remote, -nd = local branch is not ahead of remote |
-b, --behind / -nb, --no-behind | -b = local branch is behind remote, -nd = local branch is not behind remote |
--help |
示例:
|说明|命令|
| ----------- | ------- |
|帮助| gitkit --help
|
|克隆所有存储库。|gitkit -u <USERNAME> -p <PASSWORD> -t /home/pullrich/src/github clone
|
|拉取所有存储库。|gitkit -u <USERNAME> -p <PASSWORD> -t /home/pullrich/src/github pull
|
|推送所有存储库。|gitkit -u <USERNAME> -p <PASSWORD> -t /home/pullrich/src/github push
|
|提交所有存储库。|gitkit -u <USERNAME> -p <PASSWORD> -t /home/pullrich/src/github commit
|
|查找所有存储库| gitkit -t /home/pullrich/src/github find
|
|查找所有存储库| cd /your/path/ && gitkit find
|
|查找脏存储库| gitkit -t /home/pullrich/src/github find -d
|
|查找私有存储库| gitkit -t /home/pullrich/src/github find -p
|
|查找私有脏存储库| gitkit -t /home/pullrich/src/github find -pd
|
|查找公共存储库| gitkit -t /home/pullrich/src/github find -np
|
|查找分叉存储库| gitkit -t /home/pullrich/src/github find -f
|
|查找拥有的存储库| gitkit -t /home/pullrich/src/github find -o
|
|提前查找远程存储库| gitkit -t /home/pullrich/src/github find -a
|
|在远程存储库后面查找| gitkit -t /home/pullrich/src/github find -a
|
|查找未拥有的存储库| gitkit -u dotupNET -t /home/pullrich/src/github/ -l find -no
|
|推送您自己的存储库| gitkit -u <USERNAME> -p <PASSWORD> find -a -o push
|
|准备、提交并推送您自己的脏存储库| gitkit -u <USERNAME> -p <PASSWORD> find -o -d push -ac
|
|拉出你的分叉存储库| gitkit -u <USERNAME> -p <PASSWORD> find -b -o -f pull
Environment variable for user, password and target available
user=XYZpassword=XYZtarget-dir=/tmp/src
分组克隆:
您可以将源代码分组到不同的文件夹中。在
Command | Description |
---|---|
--group forks | Rpositories will be cloned into subfolder "forks" |
--group owner | Rpositories will be cloned into subfolder, named with the github login name |
mkdir -p /tmp/src
cd /tmp/src
gitkit -u dotupNET -p TopSecret clone --group forks --group owner
目标文件夹将是:
对于您自己的存储库:/tmp/src/dotupNET
对于您自己的分叉存储库:/tmp/src/dotupNET/forks
对于您不拥有的存储库:/tmp/src/RepositoryOwner
对于您不拥有的分叉存储库:/tmp/src/RepositoryOwner/forks
https://github.com/dotupNET/gitkit
- 项目
标签: