modmore / gitify
Command line toolkit to make managing a MODX site in git a lot easier
Installs: 4 181
Dependents: 0
Suggesters: 0
Security: 0
Stars: 122
Watchers: 26
Forks: 55
Open Issues: 61
Requires
- php: >=7.2.5
- symfony/console: 5.4.*
- symfony/process: 5.3.*
- symfony/yaml: 5.4.*
- dev-master
- 2.1.0-pl
- 2.0.1-pl
- 2.0.0-pl
- 2.0.0-alpha4
- 2.0.0-alpha3
- 2.0.0-alpha2
- 2.0.0-alpha1
- v1.x-dev
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- 0.12.0
- 0.11.0
- v0.10.0
- v0.9.0
- v0.8.0
- v0.7.0
- v0.6.0
- v0.5.2
- v0.5.1
- v0.5.0
- v0.4.0
- v0.3.0
- v0.2.0
- dev-dependabot/composer/symfony/console-5.4.36
- dev-dependabot/composer/symfony/yaml-5.4.35
- dev-better-packages
- dev-fix-modx3-package-install
- dev-advanced-upgrade
- dev-backup-gzip-patch
- dev-pdo-refactor
- dev-content-or-condition
- dev-windows-patch-1
- dev-feature-skip-empty-tv
- dev-issue-82
This package is auto-updated.
Last update: 2024-10-28 03:03:21 UTC
README
The goal of Gitify is to provide a two-way sync of data typically stored in the MODX database, making it versionable with Git. To do this, it creates a representation of MODX objects in files. These files follow a certain human and machine friendly format, built from a block of YAML, followed by a separator, and then the main content (if there's a specific content field) below that.
The project configuration, which determines what data is written to file and build to the database, is stored in a .gitify
file in the project root.
Upgrading to v2
Gitify v2 brings updated dependencies, additional functionality, and easier installation/updates via Composer.
The data file structure is unchanged, so you can safely update to v2.
- To upgrade with the intention of contributing to Gitify, you can keep your exiting git installation.
- Bring it up to date with the master branch (
git fetch origin && git reset --hard origin/master
, orgit fetch upstream && git reset --hard upstream/master
) - Install updated dependencies (
composer install
) - Update your
$PATH
to point to thebin
directory. This may be in your~/.bash_profile
or~/.zshrc
file.
- Bring it up to date with the master branch (
- To upgrade simply to use Gitify, it's recommended to remove the v1 git-based installation completely, and instead install Gitify globally with Composer as described in the installation section below.
Important to know:
- Gitify v2 is now compatible with Gitify Watch v2. Make sure you've upgraded to the latest version.
- The minimum PHP version has been increased to 7.2.5.
Gitify
has changed togitify
and is now in a /bin subdirectory.
Installation
composer global require modmore/gitify:^2
If that does not make gitify
available on your path, add the output of composer global config bin-dir --absolute
to your path (i.e. in the ~/.bash_profile
or ~/.zshrc
file on Mac/Linux).
To update, use composer global update modmore/gitify
.
Alternatively, you can install Gitify local to a project with composer require modmore/gitify:^2
. In that case you'll need to use vendor/bin/gitify
as the command.
When installing an alpha/dev version, if you haven't modified your global composer config before, it's possible you'll get an error message pertaining to your minimum-stability setting. (Composer defaults to stable, and we want an unstable version!) To fix this, you'll need to set your global minimum stability with the following command:
composer global config minimum-stability alpha
Manual Installation
Use the manual installation to build from source, useful if you intend to help make Gitify better.
$ git clone https://github.com/modmore/Gitify.git Gitify
$ cd Gitify
$ composer install --no-dev
$ chmod +x bin/gitify
Please see the Installation documentation for more details.
Documentation
Check the modmore Gitify documentation! It contains information about the available commands and the way you would go about setting up a suitable workflow.
Please feel free to contribute to the wiki by editing existing pages, or adding new pages with extra information not covered elsewhere yet.
Changes & History
Gitify adheres to semver. As we are before v1 right now, expect breaking changes and refactorings before the API stabilises.
For changes, please see the commit log or the Changelog.
License
The MIT License (MIT)
Copyright (c) 2014-2015 modmore | More for MODX
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.