DEV Community

Discussion on: Git Concepts I Wish I Knew Years Ago

Collapse
 
xamtheone profile image
xamtheone

Modern git has replacements for the awkwardness of git checkout doing two different jobs:

  • git switch to switch branches
  • git restore to restore a file to its original state