alanmjc/laravel-git-admin

Laravel Artisan commands to automate common Git sync workflows.

Maintainers

Package info

github.com/alanmjc/laravel-git-admin

pkg:composer/alanmjc/laravel-git-admin

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main / 0.1.x-dev 2026-05-28 19:30 UTC

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