Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions
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 đ ïž
@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
@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