Twitter | Search | |
Wes Bos
🔥 Use `git checkout -` to quickly jump back to your last git branch
Reply Retweet Like More
Wes Bos 7 Jun 17
Replying to @wesbos
👆🏻 And this works for changing directories too
Reply Retweet Like
Wes Bos 14 Jun 17
Replying to @wesbos
I thought I wouldn't like this, but merging the last checked out branch with `git merge -` is really useful!
Reply Retweet Like
Paul Unr Morrison 14 Jun 17
Replying to @wesbos
too implicit, I'm always worried about implicit actions when merging / force pushing. Gotta be explicit, just in case. :)
Reply Retweet Like
Wes Bos 14 Jun 17
Replying to @iamunr
Yeh that was my thought too, but then I realized it was silly since I just switched 2 seconds ago. That and git _is_ version control
Reply Retweet Like
Paul Unr Morrison 14 Jun 17
Replying to @wesbos
Totally makes sense! Part of my reasoning on a personal note, is using things like hubflow, which sometimes switches over multiple branches
Reply Retweet Like
Ryan Wilson-Perkin 7 Jun 17
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 7 Jun 17
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
Dominic Santo 8 Jun 17
Replying to @wesbos
What terminal emulator is that? Or is it just a theme?
Reply Retweet Like
Wes Bos 8 Jun 17
Replying to @Dom_Santo94
I wrote a bit of info here →
Reply Retweet Like
Benjamin N. Spak 7 Jun 17
Replying to @wesbos
what terminal are you using?! <3
Reply Retweet Like
天m33x0火 7 Jun 17
Replying to @benjaminspak @wesbos
I think it's xterm with zsh and a theme "agnoster"
Reply Retweet Like
Wes Bos 7 Jun 17
Replying to @Afr0x0 @benjaminspak
Close - details at
Reply Retweet Like
tommy george 7 Jun 17
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 7 Jun 17
Replying to @tommygeorge
Nice! I have a git alias for that called 'latest'
Reply Retweet Like
tommy george 7 Jun 17
Replying to @wesbos
Even better. 👍🏾
Reply Retweet Like
Lenin 7 Jun 17
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 7 Jun 17
Replying to @_1enin_
well well I've got a whole course on it →
Reply Retweet Like
Adam Dymitruk 🇨🇦 7 Jun 17
Replying to @RickDeckart @wesbos
Even better with fishshell 😎
Reply Retweet Like
Kristy 7 Jun 17
Replying to @wesbos
What is your zsh theme??
Reply Retweet Like
Salami Olakunle 7 Jun 17
Replying to @kmills006 @wesbos
"agnoster" i think
Reply Retweet Like
Wes Bos 7 Jun 17
Replying to @faety_sal @kmills006
cobalt2 -
Reply Retweet Like
Kristy 8 Jun 17
Replying to @wesbos @faety_sal
Thanks!!
Reply Retweet Like