←back to thread

1062 points mixto | 1 comments | | HN request time: 0s | source
Show context
Sxubas ◴[] No.42943267[source]
> The Old Command: git checkout

I didn't even know git switch existed, let alone git checkout was considered the old alternative. I feel old.

To be fair I started learning git a little less than 10 years ago but woah, I can't express how it feels that someone learning git today will be confused of why I use git checkout. Like using old fashioned language.

More on topic, this guide would've been super useful when I was learning. It is really easy to follow and covers common FAQs.

I fondly remember being intimidated by my first merge conflict, aborting it and just doing some workarounds to prevent the conflict.

replies(2): >>42943409 #>>42948624 #
1. Rendello ◴[] No.42943409[source]
Git switch is fairly new, it first shipped in 2019.

Here's, respectively, a discussion from 2021, and a discussion from a few weeks ago. In the latter, it's brought up that `git switch` is still considered experimental by the docs:

https://news.ycombinator.com/item?id=28024972

https://news.ycombinator.com/item?id=42649858