6 ms·
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"
by NathanOsullivan 3y ago
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'
- 0x457 3y agoDidn'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.