Skip to content

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

Notifications You must be signed in to change notification settings

sean-mullen/wp-cli-git-command

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published