A simple plugin to let you run git commands on your apps. This plugin will also forward in and load your ssh key so you can pull code that is key-protected.
You can install this plugin by going into your app directory and running the normal
npm install kalabox-plugin-git --save
In order for your app to use the plugin you will also need to inform the app of its existence. This can be done in the kalabox.json
file in your app root. Just add the plugin name to the appPlugins
key.
{
"appName": "pressflow7",
"appPlugins": [
"my-hot-plugin",
"kalabox-plugin-pressflow7-env",
"kalabox-plugin-git"
],
}
Run any git command you normally would but start it with kbox
. Run it from the directory that contains the app you want to run it against or pass in the appname.
Examples
# Returns the version of git, must run from a directory that contains a kalabox app
kbox git version
# Clones a repo into /code for a D7 app
kbox pressflow7 git clone http://github.com/kalamuna/playbox.git ./
# Pulls down the latest code, must run from a directory that contains a kalabox app
kbox git pull
In your apps kalabox.json add the following to the pluginConf key to set the username and email that will be applied to your git commits
"kalabox-plugin-git": {
"git-username": "William T. Riker",
"git-email": "risalover1701@usstitan.mil"
},
- API docs
- Test coverage reports
- Kalabox CI dash
- Mountain climbing advice
- Boot2Docker
- Syncthing
- Docker
(C) 2015 Kalamuna and friends