Explore >> Select a destination


You are here

stephenjamescode.blogspot.co.uk
| | www.brandonpugh.com
4.1 parsecs away

Travel
| | TLDR: Git hooks are an awesome way to automatically verify your code as you commit your changes I'm sure we've all been there where we accidentally committed a change that we were supposed to undo or wasn't ready to be pushed and don't realize it until the build breaks or QA finds a bug. The first step I take to avoid committing anything unintentionally is instead of just running git add -A I make sure to review all the changes in the files I'm potentially committing. This is where a graphical tool like Gitk or SmartGit comes in handy as they allow you to click on your modified files and easily view a diff and then select which changes to stage. Unfortunately changes still slip through as happened to me yesterday when a change of mine got pushed all the way ...
| | jwithy.weblog.lol
7.0 parsecs away

Travel
| |
| | blog.kulman.sk
5.8 parsecs away

Travel
| | I use the same machines to work on both personal and work projects. I usually have to use a different Git identity for the work projects than for my personal projects. Previously I had my personal Git identity set globally and then used local Git configs to override it in work projects. This worked just fine but it was too much work. There is a better solution. Git config allows you to use, or better to say include, another Git config for a specific directory and all its subdirectories. I have all my pro...
| | blog.atj.me
21.9 parsecs away

Travel
| The personal blog of Adam Jarret