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

Addition: Toggle back to the part of the tree you just came from #74

Open
thepeoplesbourgeois opened this issue Nov 16, 2020 · 0 comments

Comments

@thepeoplesbourgeois
Copy link

thepeoplesbourgeois commented Nov 16, 2020

This is a toggle, so it won't allow you to page back through an arbitrary number of locations on the tree, but it is suuuuuper useful for when you've to flip to someplace really quick and then back to where you came from.

your-branch  $ git checkout their-branch
their-branch $ git log -p # or whatever y'all're on this branch to do
their-branch $ git checkout -
your-branch  $ git checkout - 

And it works with SHAs, too!

your-branch $ git checkout s0mesha
s0mesha[…]  $ git checkout -
your-branch $ git checkout -
s0mesha[…]  $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant