# shipit-git-update
This shipit task connects to a remote server and pulls updates to a specific Git branch.
npm install shipit-git-update
Example shipitfile.js:
/*jslint node: true*/
module.exports = function (shipit) {
'use strict';
require('shipit-git-update')(shipit);
shipit.initConfig({
staging: {
deployTo: '/path/to/working/copy/',
branch: 'master',
servers: 'user@example.com',
postUpdateCmd: 'foobar'
}
});
};
Then run:
shipit staging update
Example Gruntfile.js:
/*jslint node: true*/
module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-shipit');
grunt.loadNpmTasks('shipit-git-update');
grunt.initConfig({
shipit: {
staging: {
deployTo: '/path/to/working/copy/',
branch: 'master',
servers: 'user@example.com',
postUpdateCmd: 'foobar'
}
}
});
};
Then run:
grunt shipit:staging update