Category GIT

01. Getting Started with Version Control

Recently, I was working on a project with some other engineers, & we needed a way to keep track of our switch configurations. If you are coming from a network background where version control basically meant saving files like Router_Config_Final_v2_USE_THIS.txt,…

02. The Three Trees & Local Tracking

If you’ve got Git installed & running, welcome to the club. Now I am going to set up my first local Git repository. Let us understand how Git actually manages your files in the backend, & look at the day-to-day…

03. Reading History & Undoing Mistakes

So, you’ve been working away, adding files, & committing them locally. Everything is going great. But inevitably, things go wrong. You log in one morning, look at the script you updated late last night, & realize it completely broke the…

04. Branching, Merging & Conflicts

Up to now, our Git workflow has been a straight single line. You make a change, you commit it, & the history moves forward. That works perfectly if you’re the only person working & you never make a mistake or…

05. Remote Repo and Github

Up until now, every commit, branch, & revert we’ve done has stayed entirely inside your local laptop. See, if your hard drive crashes right now, your entire project history goes with it. The problem here is that we can’t just…

06. Forks, Pull Request & Code Reviews

Alright, so far we’ve covered the core commands. You know how to initialize repos, use branches, undo mistakes, & push things to GitHub. Pretty much fully self-sufficient. But in real engineering environments, it’s rarely a solo effort. Whether you’re working…