logoalt Hacker News

jolmgtoday at 3:24 AM0 repliesview on HN

Right, maybe a better way to get what they're going for would be

  git checkout @~ ^tests
where ^tests is zsh's way of saying * except for tests. So you get the tests/ of the current commit and the code of the prior.