News for hackers. Stuff that matters.
Re:Show HN: Gut – An easy-to-use CLI for Git by 0x457 on Thursday March 30, 2023 @03:59PM (#35378075)
I've been using git for years and do `rebase -i` daily, bisect many spooky commands. However, I still don't know how I can update a branch and switch to it in one motion:

- not just update `origin/branch` - not checkout `branch` and sync it with `origin/brach`

and it drives me crazy.

Re:Show HN: Gut – An easy-to-use CLI for Git by NathanOsullivan on Saturday April 01, 2023 @12:04AM (#35396990)
Not aware of a built in way, but if you use bash or similar as your shell you can do an alias like

  git config --global alias.chpull '!f() { git checkout "$1" && git pull; }; f'
Re:Show HN: Gut – An easy-to-use CLI for Git by 0x457 on Thursday April 06, 2023 @05:22PM (#35474666)
Didn't think about alias for this even though I have alias for many other things, that should prevent `direnv` from triggering between checkout and pull. Thanks.