Twitter | Search | |
Wes Bos
πŸ”₯ Use `git checkout -` to quickly jump back to your last git branch
Reply Retweet Like More
Scott Spence πŸŒ―πŸ˜΄πŸ’»πŸ” Jun 7
Replying to @wesbos
Yesh Vinny approves
Reply Retweet Like
Jon Abrams Jun 7
Replying to @wesbos
just like `cd -`
Reply Retweet Like
Lenin Jun 7
Replying to @wesbos
Your terminal prompt is one of the best I've seen. Any tips on how to customize it that way?
Reply Retweet Like
Wes Bos Jun 7
Replying to @LeninRzSz
well well I've got a whole course on it β†’
Reply Retweet Like
Wes Bos Jun 7
Replying to @LeninRzSz
short answer is that it;s a theme called 'Cobalt2' for ZSH + a theme for either iTerm2 or Hyper called 'Cobalt2'
Reply Retweet Like
Wes Bos Jun 7
Replying to @wesbos
πŸ‘†πŸ» And this works for changing directories too
Reply Retweet Like
tommy george Jun 7
Replying to @wesbos
I use an alias, because I jump around a lot, and sometimes need more than just "most recent":
Reply Retweet Like
Wes Bos Jun 7
Replying to @tommygeorge
Nice! I have a git alias for that called 'latest'
Reply Retweet Like
tommy george Jun 7
Replying to @wesbos
Even better. πŸ‘πŸΎ
Reply Retweet Like
Ryan Wilson-Perkin Jun 7
Replying to @wesbos
You can also use this for other git commands! (on latest master branch) git checkout my-feature-branch git merge -
Reply Retweet Like
Wes Bos Jun 7
Replying to @rwilsonperkin
Ohh- I didn't know that! Though I'm too afraid to merge something without typing the branch name
Reply Retweet Like
lucapette Jun 7
Replying to @wesbos
As far as I remember it works with git merge too (which is awesome)
Reply Retweet Like
Sebastian Software Jun 7
Replying to @wesbos @yarnpkg and 2 others
Maybe and could work on making the related npm installs easy and fast. That’s typically quite a hassle. /cc
Reply Retweet Like
Ryan Tablada Jun 7
Replying to @wesbos
You can also put a number after the dash to jump further back
Reply Retweet Like
Sebastian Software Jun 7
Replying to @wesbos
That said, is there a post branch change hook for git?
Reply Retweet Like
Internal API Crimes Jun 7
that's in the pipeline already
Reply Retweet Like
Scott Spence πŸŒ―πŸ˜΄πŸ’»πŸ” Jun 7
Replying to @wesbos
That is πŸ‘Œ I'll be able to use that on Windows with git bash/cmder too right?
Reply Retweet Like
Sebastian Software Jun 7
Replying to @maybekatz @wesbos and 2 others
Awesome!
Reply Retweet Like
Rich Donnellan Jun 7
Replying to @wesbos
No need to even type `cd`. Just use `-`!
Reply Retweet Like