jicksy / git-fresh

:lemon: Fresh Git repository.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-fresh 🍋

Keep your repo fresh with one command.

Usage

Usage: git fresh [-fmrtRW] [-sl] [remote] [root]
By default, git-fresh will:
 - rebase against remote current branch
 - stash changes
 - prune remote branches

git-fresh will ignore any branches listed in a .freshignore file.

-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

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

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.

About

:lemon: Fresh Git repository.


Languages

Language:Shell 100.0%