保持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]...

选项:

OptionTypDescription
-t, --target-dirTEXTThe local target/source path
-u, --userTEXTThe github username
-p, --passwordTEXTThe github password
-l, --listPrint results. Does not execute any command.
--helpShow this message and exit.

命令:

^{tb2}$

查找选项:

OptionDescription
-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

分组克隆:

您可以将源代码分组到不同的文件夹中。在

CommandDescription
--group forksRpositories will be cloned into subfolder "forks"
--group ownerRpositories 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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java JNI和取消异步任务   java整数n作为List<String>的第二个参数传递。子列表(fromIndex,toIndex),但是stacktrace说toIndex在Kotlin中是n+2   如何在Java中正确嵌套多个ArrayList/Maps?   在嵌套条件语句中比较数组中的值时,java List没有打印正确的值   从CRON作业运行java代码   JRE使用jvisualvm检测到java致命错误   java将字符添加到BufferedReader中   带有枚举的java单例与带有双重检查锁定的单例   Java中的编译器构造基类的更改会影响子类的字节码吗?   Java作为Windows服务用户数据路径   java clone():ArrayList。克隆人()我认为它是一个肤浅的复制品   在jfilechooser多文件选择器启用中打开对话框后,java文件将显示所选文件   java在常用的操作方法中使用反射可以吗?   java ReloadableResourceBundleMessageSource。getMessage()不使用我给它的参数