News for hackers. Stuff that matters.
Re:Ask HN: Can I see your scripts? by aendruk on Monday August 15, 2022 @04:40PM (#32475070)
Old habit breaker:

  git() {
    if [[ "$1" == 'checkout' ]]; then
      echo 'Reminder: Use `git switch` or `git restore` instead.' >&2
    fi

    command git "$@"
  }
Re:Ask HN: Can I see your scripts? by strboul on Sunday August 21, 2022 @05:12AM (#32538535)
What's wrong with git checkout?
Re:Ask HN: Can I see your scripts? by aendruk on Sunday August 21, 2022 @10:46AM (#32540695)
It’s overloaded and has recently been made obsolete by splitting it into two new commands. There’s nothing wrong with personally continuing to use it, but adopting the new vocabulary might help make Git less confusing to others.