Git Worktree

When you are working in a large code base comprising of multiple micro services maybe in a single repository your work would require you to make progress on multiple features simultaneously. There comes in a lot of context switching which in git terminology means multiple branches. The flow can become cumbersome when you keep stashing and checking out. Let’s see how that looks like. What is the problem? Let’s say I am working on a long term new feature in my freshly checked out branch lakshyasingh/feature-python....

September 1, 2024 · 5 min · 1020 words · Lakshya Singh

Good Git Commits

Good Commits Git commits are everywhere, and you might be generating more than 1k commits over a year. So it becomes crucial to understand that commit should be structured and created in a scalable manner. Why bother? Writing better commits can make the difference between your debugging session lasting 1 hour to a few minutes. With good commits, it’s easier for anyone to understand the progress of a project and get up to speed....

May 7, 2021 · 3 min · 548 words · Lakshya Singh