Do you use `git checkout` still? Stop.

Meet `git switch` and `git restore`.

I've totally switched (:blobcatfacepalm:) to `git switch`. If you want to incorporate it in your everyday routine, consider remembering useful `-c` and `-d` options.


@lig git switch doesn’t seem to allow switching to a commit hash or tag name, only a branch. In that respect, git checkout is still useful.

@Crocmagnon Have you noticed the `-d` option, I've mentioned?

@lig No I haven’t! Thanks for pointing that out again 🙏🏻 I focused on -c.

Sign in to participate in the conversation

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.