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
- Host: GitHub
- URL: https://github.com/avimehenwal/git-refresh
- Owner: avimehenwal
- License: mit
- Created: 2019-06-23T23:14:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T20:58:45.000Z (over 2 years ago)
- Last Synced: 2025-03-24T06:04:08.458Z (about 1 month ago)
- Topics: fish, oh-my-fish, oh-my-fish-plugin, omf
- Language: Shell
- Homepage:
- Size: 30.3 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#### git-refresh
> A plugin for [Oh My Fish][omf-link].[](/LICENSE)
[](https://fishshell.com)
[](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

## 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