Current Status

Oct 16, 2020

git switch - is my new favorite command.


David 5d ago
Git us back MI, you greedy Disney!

David 5d ago
0h well.

NRG 5d ago
I don't use GIT because I'm afraid of commitment.

Johan Windh 5d ago
Yeah, I'm gonna git Switch for my son for Xmas.

Miguel Alves 4d ago
There seems to be a PHP error on the main page at bottom. By the looks of it seems  mbstring functions was not enabled (https://www.php.net/manual/en/mbstring.installation.php).

Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /home/flab/www/grumpygamer.com/Parsedown.php:188 Stack trace: #0 /home/flab/www/grumpygamer.com/Parsedown.php(52): Parsedown->linesElements() #1 /home/flab/www/grumpygamer.com/Parsedown.php(26): Parsedown->textElements() #2 /home/flab/www/grumpygamer.com/markdown.php(358): Parsedown->text() #3 /home/flab/www/grumpygamer.com/blog.php(393): parseMarkdown() #4 /home/flab/www/grumpygamer.com/blog.php(562): displayArticle() #5 /home/flab/www/grumpygamer.com/blog.php(668): displayMainArticles() #6 {main} thrown in /home/flab/www/grumpygamer.com/Parsedown.php on line 188

Ron Gilbert 4d ago
Thanks... I just moved to a new server and am working though all the little things that need to be installed.

Little Cat 3d ago
That feeling when git switch is now a thing and serves better context than git checkout.  Thanks for reminding me to update git.

bxm 3d ago
Not entirely sure what `switch` is doing for me over `checkout` ... and `git checkout -` is also a "thing".

I am also slightly put off by:
"THIS COMMAND IS EXPERIMENTAL. THE BEHAVIOR MAY CHANGE."

Tom 2d ago
I'd also like to know how this differs from checkout.

My ideal switch would be "git stash ; git checkout <branch> ; git pull" (been meaning to create an alias for that).

bxm 2d ago
Reading around a bit, it seems there's a conscious effort to split the functions of `checkout`, into `switch` for where it refers to branches and `restore` for where it's file content.  Seems logical.

CptHarlock 6h ago
git reflog and git bisect are the superheroes

Fun times 46m ago
For your next trick, try 'cd -'

It's even more useful!

Add your comment:


Here are the rules for commenting.