Set of console commands for git.
This package depends on Cross package.
composer require igor-kozhevnikov/cross-git
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.
./vendor/bin/cross git:add
Config:
options
Applied options
./vendor/bin/cross git:commit
Config:
options
Applied optionsmessage.handlers
Handlers for a message
./vendor/bin/cross git:push
Config:
options
Applied options
./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 theadd
command will be usedis_use_commit
If the value is positive then thecommit
command will be usedis_use_push
If the value is positive then thepush
command will be used
./vendor/bin/cross git:feature:create
Options:
-p
--project
Define a project name
Config:
project
Project nametitle.handlers
Handlers for a title
./vendor/bin/cross git:feature:switch
Options:
-p
--project
Define a project name
The Cross for Git is open-sourced software licensed under the MIT license.