An open API service indexing awesome lists of open source software.

https://github.com/avimehenwal/git-refresh

git pull automatically wherever inside a git repository
https://github.com/avimehenwal/git-refresh

fish oh-my-fish oh-my-fish-plugin omf

Last synced: 21 days ago
JSON representation

git pull automatically wherever inside a git repository

Awesome Lists containing this project

README

        

#### git-refresh
> A plugin for [Oh My Fish][omf-link].

[![MIT License](https://img.shields.io/badge/license-MIT-007EC7.svg?style=flat-square)](/LICENSE)
[![Fish Shell Version](https://img.shields.io/badge/fish-v2.2.0-007EC7.svg?style=flat-square)](https://fishshell.com)
[![Oh My Fish Framework](https://img.shields.io/badge/Oh%20My%20Fish-Framework-007EC7.svg?style=flat-square)](https://www.github.com/oh-my-fish/oh-my-fish)


# Introduction

**git-refresh** automates pulling your git managed repositories
as soon as you `cd` into them.

No command, no fuss required. Just plain old-fashioned simple automation.

Hope it saves you some time and hopefully some frustration overtime.

Project aim is that you never see the following git error warning

```
To https://github.com/USERNAME/REPOSITORY.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/USERNAME/REPOSITORY.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
```

Hail Automation! :)

## Demo

![git-refresh-demo](git-refresh.png)

## Install

```fish
$ omf install git-refresh
```

## Usage

Upon successfull installation, just relax and let the
plugin take care of pulling git repo as soon as you
cd to any *git managed* directory.

It executes automatically. :relaxed:

# License

[MIT][mit] © [avimehenwal][author] et [al][contributors]

[mit]: https://opensource.org/licenses/MIT
[author]: https://github.com/avimehenwal
[contributors]: https://github.com/avimehenwal/plugin-git-refresh/graphs/contributors
[omf-link]: https://www.github.com/oh-my-fish/oh-my-fish

[license-badge]: https://img.shields.io/badge/license-MIT-007EC7.svg?style=flat-square