📎 Webclip
A huge productivity boost in git with a single alias
The post recommends adding a shell alias so g expands to git, which reduces repeated typing in daily use. It also shares a few personal Git configuration choices kept in ~/.gitconfig, including a global ignore file, default rebase on pull, and autocorrect for mistyped commands.
Reading notes#
- Add
alias g='git'in.bashrcor a similar shell file sog pullcan replacegit pull. - Use a global ignore file through
core.excludesfilefor common files such as.DS_StoreandThumbs.db. - Enable
pull.rebase = trueto makegit pulluse rebase by default. - Turn on
help.autocorrect = 5so Git can correct mistyped commands after a short delay. - Keep custom Git aliases that print the full command before running it, including shortcuts for status, add, commit, checkout, amend, sync with rebase, and a colored log view.
- The closing advice is to optimize repeated tasks during the day.
