03 Jul '12, 5pm

GIT TIP: `git checkout -` checks out the previous branch. Apply repeatedly to toggle between two branches.

If you use git, you’re running git checkout $BRANCH all the time. Everyone likes a fast checkout at the grocery store. How about making your git checkouts fast, too? Since I do it so often, I want it to go as fast as possible, and I bet you do too. Are you … hot blooded?! git checkout - (that’s git checkout followed by a dash) is the bee’s knees. It switches back to the branch you were on previously. If you run it again, you’re toggled back to the first branch. A useful comparison is cd - , which as you may know takes you back to your most recent directory. Here’s an example: $ git branch * alternate master $ git checkout alternate $ git branch * alternate master $ git checkout - # Now we're back to master! $ git branch alternate * master What are your favorite git tips and tricks?

Full article: http://robots.thoughtbot.com/post/26417669058/git-checkou...

Tweets

git pro tips

pivotallabs.com 03 Jul '12, 4pm

The following are things I found very helpful, which you also may find make your day-to-day usage of Git more enjoyable. G...

git to the masses

pivotallabs.com 05 Jul '12, 3pm

The following are things I found very helpful, which you also may find make your day-to-day usage of Git more enjoyable. G...

undoing a git pull

pivotallabs.com 09 Jul '12, 1pm

If you're using a rebase strategy for the first time you may run git pull in a situation where Git practically tells you t...

G+: 16 tutoriais sobre #Git/GitHub #tips https:...

ruby-br.org 02 Jul '12, 1pm

O Git/GitHub viraram os melhores companheiros dos desenvolvedores Ruby e Rails. Trata-se de uma excelente ferramenta para ...

Railscasts - Git on Rails:

railscasts.com 26 Jun '12, 3pm

Git has been getting a lot of buzz lately, and for good reason. It's an excellent SCM which in many ways is more simple an...

Taiwan handset ODMs welcome small changes in Je...

digitimes.com 03 Jul '12, 9am

Taiwan handset ODMs welcome small changes in Jelly Bean from Android 4.0 Daniel Shen, Taipei; Steve Shen, DIGITIMES [Tuesd...