Keep your repo fresh with one command.
- Updates local master to match remote, prunes stale branches
- Rebases current branch against remote master with
-r
flag - Deletes stale local and remote branches with
-f
flag - Wipes the slate clean with
-F
flag
Usage: git fresh [-frsF] [remote] [root]
-f: Delete stale local and remote branches
-r: Rebase current branch against remote root
-s: Apply stashed changes after run
-F: Reset local root to remote root, wipe workspace
remote: remote name, origin by default
root: root branch, master by default
- Download
sudo make install
git-fresh is provided under the MIT License.
git-fresh is a project by Ivan Malopinsky.