Git Product home page Git Product logo

fetcher's Introduction

fetcher

Updates your git-repositories by running git commands, that you specify for each of your repositories.

Install

Arch Linux

For Arch Linux simply use yaourt:

yaourt -S fetcher

Done!

Other Distributions

Clone this repo and copy the fetcher.sh to a location which is in your $PATH environment variable, e.g ~/.local/bin:

cp ./fetcher.sh ~/.local/bin/fetcher

That's it, but if you want to use the systemd service you need to install the unit file fetcher.service and timer fetcher.timer to a systemd unit path, e.g. ~/.config/systemd/user:

cp ./fetcher.service ~/.config/systemd/user/fetcher.service
cp ./fetcher.timer ~/.config/systemd/user/fetcher.timer

Configuration

In order to make this working, you need a configuration file, which is by default at ~/.config/fetcher.conf. Each line consists of the repository and the action to be performed in that repository:

$HOME/workspace/repo pull --ff-only
~/workspace/repo2 pull origin master:master
~/workspace/repo2 push

Usage

Manually

In order to perform the actions, just run

fetcher

Automatically with systemd

The installed systemd service file will run fetcher automatically, after the network is online. To enable this just run following commands:

systemctl --user reload-daemon
systemctl --user enable fetcher.service fetcher.timer

To try it out you can run:

systemctl --user start fetcher.service fetcher.timer
systemctl --user status fetcher.service fetcher.timer

fetcher's People

Contributors

mbrunnen avatar sr-tream avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.