2019-01-21 16:47:42 -05:00
2019-01-21 16:47:42 -05:00
2016-03-22 22:01:24 -04:00
2017-07-18 21:12:02 -04:00
2017-11-14 23:04:37 -05:00
2018-02-19 10:19:40 +01:00

git-fresh 🍋

Keep your repo fresh with one command.

Usage

Usage: git fresh [-fmrtRW] [-sl] [remote] [root]
By default, git-fresh will:
 - update local root (master) to match remote root
 - stash changes
 - prune remote branches

git-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.

-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: Apply stashed changes after run
-l: Only delete local stale branches

-v: Print git-fresh version and exit

remote: remote name, origin by default
root: root branch, master by default

Installation

Manual on Linux or MacOSX

  1. Clone or download
  2. cd git-fresh
  3. sudo ./install

Manual on Windows

Copy the file git-fresh to usr\bin in your git installation directory. This usually is C:\Program Files\Git\usr\bin.

Package

  • Homebrew: brew install git-fresh
  • bpkg: bpkg install imsky/git-fresh

License

git-fresh is provided under the MIT License.

Credits

git-fresh is a project by Ivan Malopinsky.

S
Description
🍋 Keep your Git repo fresh.
Readme MIT 156 KiB
Languages
Shell 87.1%
Roff 12.9%