Skip to content

git branch-stash command not found. #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
fuel-wlightning opened this issue Mar 23, 2022 · 2 comments
Closed
2 tasks done

git branch-stash command not found. #221

fuel-wlightning opened this issue Mar 23, 2022 · 2 comments
Labels
bug Not as expected

Comments

@fuel-wlightning
Copy link

fuel-wlightning commented Mar 23, 2022

Please complete the following tasks

  • I have searched the discussions
  • I have searched the existing issues

Description

After running git stack --pull if I want to undo it asks me to do a:
git branch-stash pop git-stack

When I try to run this command, git says:
git: 'branch-stash' is not a git command. See 'git --help'.

Version

0.8.1

Steps to reproduce

  • On MacOS 12.3 (on Intel processor) install git via XCode Command Line Tools to get Apple git version git version 2.32.0 (Apple Git-132))
  • install git-stack via cargo install git-stack
  • Ensure ${HOME}/.cargo/bin is in your path.
  • ensure you have an existing branch based on a protected branch that has been updated in origin.
  • git stack --pull - Which rebases the branch on the updated protected branch successfully.
  • git branch-stash pop git-stack to attempt to undo the rebase.

Actual Behaviour

git: 'branch-stash' is not a git command. See 'git --help'.

Expected Behaviour

It would undo the latest rebases from the pull.

Debug Output

% git -vv branch-stash pop git-stack
unknown option: -vv
usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           [--super-prefix=<path>] [--config-env=<name>=<envvar>]
           <command> [<args>]
% 
@fuel-wlightning fuel-wlightning added the bug Not as expected label Mar 23, 2022
@epage
Copy link
Collaborator

epage commented Mar 23, 2022

Yes,, this has now been split out into a separate repo / crate. I still need to update the documentation to reflect that.

See https://github.com/gitext-rs/git-branch-stash

@fuel-wlightning
Copy link
Author

Thank you! I fixed by doing cargo install git-branch-stash-cli

@epage epage closed this as completed in d88c338 Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not as expected
Projects
None yet
Development

No branches or pull requests

2 participants