Skip to content
main logo
  • Blog
  • LinkedIn
  • GitHub
  • Recipes
Home » Git

Category Archives: Git

Only Commit Changes to Tracked Files in Git

I recently started using the command git add -u when preparing my code for commit via the command line. This helps me to only commit changes to tracked files. Not long ago I would occasionally make accidental commits of untracked file changes when using the command git add . If you’re new to git, the …

Continue reading “Only Commit Changes to Tracked Files in Git”

How To Write A Good Pull Request

I’ve found that the more informative I make my pull request descriptions, the more quickly they get reviewed and the less bugs they generate in the future. To this end and to avoid annoying my colleagues, I follow a few guidelines on how to write a good pull request. Provide Context What is the nature …

Continue reading “How To Write A Good Pull Request”

Remove Whitespace From Code Changes

I can’t tell you how many times I’ve committed and pushed some code changes only to realize or have a colleague point out that my changes introduced trailing whitespace. This happened all too frequently until I recently adopted some tools and practices to keep my whitespace in check. Turns out it’s pretty easy to remove …

Continue reading “Remove Whitespace From Code Changes”

© 2025 Neilson Web Design