News for hackers. Stuff that matters.
Re:Ask HN: What are some Git aliases you setup that save you... by MattBearman on Saturday July 08, 2023 @12:31PM (#36645981)
Unless I’m misunderstanding you can checkout your previous branch with

  git checkout -
(The same way you can use ‘cd -‘ to change to your previous directory)
Re:Ask HN: What are some Git aliases you setup that save you... by fantapop on Monday July 10, 2023 @11:56AM (#36668229)
Thank you I didn't know about this. Your version is a bit more compact.