Skip to content
WP-CLI: WordPress Git helpers, like pre-commit hooks for automatic MySQL database dumps.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
composer.json
pre-commit-mysql-dump
wp-cli-git-command.php

README.md

wp-cli-git-command

WordPress Git helpers, like pre-commit hooks for automatic MySQL database dumps.

Installation

Usage

# in your WordPress directory
wp git init

# do some changes to files

git commit -am "i updated xyz" # creates .db/mysql_dump.sql

# reset the database at any time
# since .db/mysql_dump.sql is checked into your version control, 
# you can now easily keep track of databases changes as well.
wp db import .db/mysql_dump.sql
You can’t perform that action at this time.