Modern Git Commands and Features You Should Be Using

Modern Git Commands and Features You Should Be Using — a short article from Martin Heinz about some new-ish (>2018) features in Git, that 'can make your life so much easier'.

TL;DR:

  • git switch <branchname>
  • git restore --staged <somefile>
  • git restore --source <commit> <somefile>
  • git sparse-checkout
  • git worktree
  • git bisect

Similar post from five years ago: More productive Git

blog comments powered by Disqus