Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imsky/git-fresh
:lemon: Keep your Git repo fresh.
https://github.com/imsky/git-fresh
git hacktoberfest utility
Last synced: 20 days ago
JSON representation
:lemon: Keep your Git repo fresh.
- Host: GitHub
- URL: https://github.com/imsky/git-fresh
- Owner: imsky
- License: mit
- Created: 2015-08-13T03:55:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-12-11T11:14:34.000Z (about 3 years ago)
- Last Synced: 2024-10-14T11:35:25.343Z (about 2 months ago)
- Topics: git, hacktoberfest, utility
- Language: Shell
- Homepage:
- Size: 87.9 KB
- Stars: 507
- Watchers: 11
- Forks: 22
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - git-fresh - :lemon: Keep your Git repo fresh. (Shell)
README
# git-fresh :lemon:
Keep your repo fresh with one command.
## Usage
```
SYNOPSIS
git-fresh [-fmrtRWS] [-sl] [remote] [root]DESCRIPTION
git-fresh helps keep your Git repo fresh.By default, git-fresh will:
- update local root (master) to match remote root
- stash changes
- prune remote branchesgit-fresh will ignore any branches listed in a .freshignore file.
.freshignore should contain branch names you would like to ignore
on separate lines. The file can exist in the current Git repo
or in the home directory, i.e. ~/.freshignore.remote is origin by default. root is master by default.
OPTIONS
-f Delete stale local and remote branches
-m Merge remote root into current branch
-r Rebase current branch against remote root
-t Remove local tags that do not exist on remote
-R Reset local root to remote root
-W Wipe workspace clean
-S Clear all stash entries-s Apply stashed changes after run
-l Only delete local stale branches-v Print git-fresh version and exit
```## Installation
### Manual on Linux or macOS
1. Clone or download
2. `cd git-fresh`
3. `sudo ./install.sh`### Manual on Windows
Copy the file [git-fresh](https://raw.githubusercontent.com/imsky/git-fresh/master/git-fresh) to `usr\bin` in your git installation directory.
This usually is `C:\Program Files\Git\usr\bin`.### Package
* [Homebrew](http://brew.sh/): `brew install git-fresh`
* [bpkg](http://www.bpkg.io/): `bpkg install imsky/git-fresh`
* [AUR](https://aur.archlinux.org/): [git-fresh](https://aur.archlinux.org/packages/git-fresh/)## License
git-fresh is provided under the [MIT License](http://opensource.org/licenses/MIT).
## Credits
git-fresh is a project by [Ivan Malopinsky](http://imsky.co).