Download the PHP package danc0/git-destroyer without Composer
On this page you can find all versions of the php package danc0/git-destroyer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download danc0/git-destroyer
More information about danc0/git-destroyer
Files in danc0/git-destroyer
Package git-destroyer
Short Description A tool for managing git repositories
License Unlicense
Informations about the package git-destroyer
A CLI Git Repository manager.
FYI: This is still a work in progress, unit testing, static analysis etc are not complete and this brief guide may change.
Usage
Download the Git Destroyer codebase or use Composer composer create-project danc0/git-destroyer
and create an alias to src/git-destroyer
. This will allow you to use this file in the CLI with an alias instead of having to type php [PATH TO INSTALL]/src/git-destroyer
. Examples going forward will assume an alias of git-destroyer
is set up.
Basics
Git Destroyer offers robust help menu options git-destroyer help
will show the available commands as well as some package info. The commands are shown below.
Each of these commands also have their own help menus you can access using --help
for example git-destroyer commit --help
This shows you the usage, available flags, available options, and if they are required.
Getting Started
Run git-destroyer init
to create a new Git Destroyer config for your project. This will create both a config file and a hooks file.
Hooks File
The hooks file is a JSON file that allows you to customize the run time of Git Destroyer.
The pre
and post
arrays should be strings of bash commands you wish to run at those times. The staging
and live
keys are for merging code into your staging or production branch. The scripts
section should be an object so you can call them using git-destroyer script example
.
Dev Environment Notes:
Need to create src/stan.php
for PHPStan to find constants, this file should look like this:
If you try to work on this and don't add that PHPStan will yell at you.