Skip to content
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

Previous branch switching support for move command #50

Merged
merged 1 commit into from
Mar 18, 2023

Conversation

joseluisq
Copy link
Owner

@joseluisq joseluisq commented Mar 18, 2023

This PR adds previous branch switching support to the move command.

Shorthand variant:

move -

Option variants:

move -p
# or
move --prev

Notes

  • Previous branch switching only works via the move command. E.g if you switched to a branch using git checkout ... manually, then move - will lose track of the previous branch.
  • When switching move uses the --no-apply-stash option by default.

More details via move -h

It resolves #35

variants:

~> move -p
~> move --prev
~> move -

resolves #35
@joseluisq joseluisq added the enhancement New feature or request label Mar 18, 2023
@joseluisq joseluisq self-assigned this Mar 18, 2023
@joseluisq joseluisq changed the title Previous branch switching for move command Previous branch switching support for move command Mar 18, 2023
@joseluisq joseluisq merged commit 4fb84fd into master Mar 18, 2023
@joseluisq joseluisq deleted the move-previous-branch branch March 18, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support to previous branch shorthand
1 participant