定制 igor-kozhevnikov/cross-git 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

igor-kozhevnikov/cross-git

最新稳定版本:v1.5.2

Composer 安装命令:

composer require igor-kozhevnikov/cross-git

包简介

Set of console commands for git

README 文档

README

PHP License Release

Set of console commands for git.

Install

This package depends on Cross package.

composer require igor-kozhevnikov/cross-git

Configuration

If your project doesn't have a cross.php config file in the root directory, just run the follow command.

./vendor/bin/cross cross:config

Add data as described below to the cross.php file.

<?php

return [
    'plugins' => [
        \Cross\Git\Plugin\Plugin::class,
    ],
];

To learn more about the available configurations, see the plugin and commands config files.

Commands

Adds all files to index

./vendor/bin/cross git:add

Config:

  • options Applied options

Commit changes with a message

./vendor/bin/cross git:commit

Config:

  • options Applied options
  • message.handlers Handlers for a message

Push changes to the current branch

./vendor/bin/cross git:push

Config:

  • options Applied options

Add, commit and push

./vendor/bin/cross git:snapshot [options]
./vendor/bin/cross snap [options]

Options:

  • -a --add Don't add all files to index
  • -c --commit Don't commit changes
  • -p --push Don't push changes

Config:

  • is_use_add If the value is positive then the add command will be used
  • is_use_commit If the value is positive then the commit command will be used
  • is_use_push If the value is positive then the push command will be used

Create a feature branch

./vendor/bin/cross git:feature:create

Options:

  • -p --project Define a project name

Config:

  • project Project name
  • title.handlers Handlers for a title

Switch between feature branches

./vendor/bin/cross git:feature:switch

Options:

  • -p --project Define a project name

License

The Cross for Git is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 88
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-05