13 unstable releases (4 breaking)
|0.11.0||Apr 3, 2023|
|0.10.4||Mar 16, 2023|
|0.10.2||Feb 1, 2023|
|0.10.0||Oct 3, 2022|
|0.9.2||Mar 23, 2022|
#16 in #git-cli
59 downloads per month
Manage snapshots of your working directory
Dual-licensed under MIT or Apache 2.0
Backup and restore what your branches, including what they point at.
Download a pre-built binary (installable via gh-install).
Or use rust to install:
cargo install git-branch-stash-cli
See the uninstall method for your installer.
git-branch-stash leaves behind:
Removing this is safe and will have no effect.
Protected branches: These are branches like
must not modify.
git-branch-stash will also rebase local protected branches against
their remote counter parts.
git-branch-stash --protected -v to test your config
- To locally protect additional branches, run
git-branch-stash --protect <glob>.
- When adopting
git-branch-stashas a team, you can move the protected branches from
$REPO/.gitconfigand commit it.
Pull remote when working from a fork, where upstream is a different remote than
git config --add stack.pull-remote <REMOTE> to set your remote in
To see the config, run
git-branch-stash --dump-config -.
Why don't you just ...?
Have an idea, we'd love to hear it!
There are probably
git operations or workflows we haven't heard of and would
welcome the opportunity to learn more.