Skip to content

A Capistrano (v3) task for automated git add, commit, push before each deploy (If there are any changes and it can be skipped)

License

Notifications You must be signed in to change notification settings

goooseman/capistrano3-git-push

Repository files navigation

capistrano3-git-push

This Capistrano (v3) task ask for the commit message and then makes

git add -A
git commit -m '#{message}'
git push

if there are any changes. You can skip it by typing skip when you are asked for the commit message. It is very handy to make it

before :deploy, 'git:push'

in config/deploy.rb.

Installation

Add this line to your application's Gemfile:

group :development do
	gem 'capistrano3-git-push'
end

And then execute:

$ bundle

And then add require 'capistrano3/git-push' to your Capfile

My other works

Take a look at my capistrano3-ubuntu-server-prepare (it can install Nginx, PostgreSQL, Redis, RVM, Rails, Bundler, Imagemagick and do some other helpfull things to prepare your blank Ubuntu server for the first deploy) and capistrano3-delayed-job (delayed-job daemon management) Capistrano (v3) gems.

About

A Capistrano (v3) task for automated git add, commit, push before each deploy (If there are any changes and it can be skipped)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages