Git Config Settings I Always Recommend

If you鈥檝e ever worked on a project with me then I鈥檝e probably recommended at least one of these config settings in git. git config --global pull.rebase true - tells git to always pull with rebase instead of merge (the equivalent of pull --rebase). This not only saves you having to type the flag every time, but also ensures gui clients will also use rebase when pulling. Note: You should only enable this if you鈥檙e comfortable with rebasing....

March 5, 2022 路 updated January 31, 2024 路 2 min 路 Brandon Pugh

You Should be Using Git Hooks

In my opinion Git hooks are an incredibly useful yet under-utilized feature of git. There are lots of resources that go into hooks in detail but here I鈥檓 just going to list some of the ones I find myself using over and over again. prepare-commit-msg This hooks is great for templating your commit messages. This post does a great job of highlighting some powerful possibilities. I like to use it to automatically insert a ticket number from the current branch name....

May 1, 2019 路 2 min 路 Brandon Pugh