Content pfp
Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
Why Git is better when you make many small, independent, thoughtfully-messaged commits: https://www.aleksandrhovhannisyan.com/blog/atomic-git-commits/
2 replies
2 recasts
9 reactions

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
Tip for sifting through changes to stage: use GitHub Desktop, or Cmd+Shift+P “Git: Stage Selected Ranges” in VSCode/Cursor. Also, don’t let this upfront work stop you from simply committing! Commit something directionally correct first, then get used to rewriting history and performing “time heists” on your past self👇 Apply staged changes to most recent commit: git commit --amend Or, make a new commit that is marked as “fixing up” a past commit: git commit --fixup <commit hash here> (Or install `git absorb` to automatically find the relevant commit to fix up for you!) git absorb --base HEAD~20 Then finally, rearrange and squash the relevant commits together: git rebase -i --autosquash HEAD~20 git push -f (Replace `HEAD~20` with an upstream branch name or your own estimate of how many commits ago you need to time-travel back to!)
0 reply
0 recast
1 reaction

Steve pfp
Steve
@stevedylandev.eth
This is one reason I love using LazyGit. Makes it super easy to only commit particular diffs inside a file vs the whole thing; pick and choose the changes that make a unit.
1 reply
0 recast
0 reaction