Hi friends!“The nice thing about Git is that it’s very general. … There is a lot of stuff you can do with Git; it’s not just version control that it’s fun to play with.” - Scott Chacon, GitHub's co-founder A recent talk with the same title as this email was given by Scott Chacon, founder of GitHub, to students earlier this year. I was so inspired by it that I watched it repeatedly and decided to summarize the tips and tricks I discovered—features I didn’t even know existed after a decade of using Git daily. Git is getting close to 200 subcommands 🤯, here are some unknown yet super useful ones! 1. Conditional ConfigurationsDid you know you can set conditional configurations in Git? This allows you to use different settings for different projects. For instance, you can set a global email for most repositories and a specific email for work projects without changing settings manually every time. Just use a relative path in your config file and let Git handle the rest. Here’s an example git config:
2. Custom AliasesCreating custom aliases can save you a lot of time. For example, you can alias the stash command to include untracked files: Now, running ` 3. Reuse Recorded Resolution (rerere)Git’s
4. Enhanced Blame and LogUsing Similarly, 5. Code Movement AwarenessThe
New Git Features!Git continuously evolves, and here are some fresh additions:
That's it!I hope you found it useful. Please reply with any feedback or questions. Have a great weekend! |
Every once in a while I send hand picked things I've learned. Kind of like your filter to the tech internet. No spam, I promise!
In a world where online privacy is increasingly under threat, and content is being blocked based on geo-location, many of us turn to paid VPNs for help. But what if I told you there's a better way? Paid VPN services promise security and anonymity, but they come with their own set of problems. You're entrusting your data to a third party, often with unclear logging policies and potential vulnerabilities. Not to mention the recurring costs that can add up over time If you have a bit of...
When it comes to terminal shells, many developers (myself included) have stuck with what they know or what they've seen others use online, without exploring other options. It's time to venture out and discover the world of terminal shells. Most developers are likely using Zsh, a POSIX-compatible shell, probably with Oh My Zsh on top. But there's a whole spectrum of shells out there, each with its own strengths and quirks. Today, we're going to explore three major players: Bash, Zsh, and Fish....
6 Neovim Plugins I Use To Troll Code Reviewers The Espresso Fridays is brought to you by: Zero To Running a Kubernetes Application Without Weeks of Studying A hands-on Kubernetes guide to deploy your first scaleable application In under 90 minutes you'll: ✅ Learn all the critical Kubernetes basics from a 10-year industry expert ✅ CUT learning time by 60% with a hands-on application deployment walkthrough ✅ Never feel inexperienced again with the hottest technology in the market Start learning...