0.0
No commit activity in last 3 years
No release in over 3 years
execute git command in background
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

 Project Readme

Git::Background

Execute git commands in background and notify the result. Executing in background is convenient in commands which take a while, like git pull, git push and so on. git background command is provided for the purpose.

Installation

Add this line to your application's Gemfile:

gem 'git-background'

And then execute:

$ bundle

Or install it yourself as:

$ gem install git-background

Usage

Use git background command.

For example, git push in background:

git background push

You can specify the notification with option --notifier=. For example, to notify with tmux:

git background --notifier=tmux push

Available notifiers are listed in notifier gem or tmux or osx_notification.

If you don't want to notify, use option --no-notifier.

git background --no-notifier push

Alias like bg is very useful.

git config --global alias.bg background

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

This gem is distributed under MIT license.