alanmjc / laravel-git-admin
Laravel Artisan commands to automate common Git sync workflows.
dev-main / 0.1.x-dev
2026-05-28 19:30 UTC
Requires
- php: ^8.0
- illuminate/console: ^8.83|^9.0|^10.0|^11.0|^12.0
- illuminate/support: ^8.83|^9.0|^10.0|^11.0|^12.0
- symfony/process: ^5.4|^6.0|^7.0
This package is auto-updated.
Last update: 2026-05-28 19:30:44 UTC
README
Composer package that provides Artisan commands for common Git synchronization workflows.
Installation
composer require alanmjc/laravel-git-admin:^0.1.0
Compatibility:
- Laravel 8.83+
- Laravel 9, 10, 11, and 12
- PHP 8.0+
Laravel package auto-discovery registers the provider automatically.
Commands
app:sync-git
Synchronizes the current branch with remote and rebases on a base branch.
php artisan app:sync-git php artisan app:sync-git desarrollo php artisan app:sync-git desarrollo --yes
Arguments and options:
branch(default:desarrollo): base branch used for rebase.--yes: skips confirmation for force push.
app:sync-branches
Iterates predefined development branches, merges each into desarrollo, and pushes.
php artisan app:sync-branches
Publish configuration to customize branches and main target branch:
php artisan vendor:publish --tag=git-admin-config
Generated config file:
<?php return [ 'sync_branches' => [ 'main_branch' => 'desarrollo', 'branches' => ['alan', 'luis', 'mauricio', 'vasni'], ], ];
Local development
Run this in the package root:
composer dump-autoload
To test in a Laravel app using path repository:
{
"repositories": [
{
"type": "path",
"url": "../git-admin"
}
]
}
Then require it:
composer require alanmjc/laravel-git-admin:dev-main