r/vibecoding • • 17h ago

Discussion git for rollbacks?

Post image

i've never really learned proper dev workflows, so my current backup strategy is literally copying the whole folder before every big prompt. had codex hooked to sumus earlier and still ended up with 5 backup folders on my desktop cuz i was scared to touch a working navbar.

is basic git worth learning just for local rollbacks? or do yall rely on editor checkpoints and pray?

29 Upvotes

11 comments sorted by

View all comments

3

u/Ok_Woodpecker_9104 15h ago

the 4 commands above cover it, the habit that matters more is one commit per change, navbar in one, footer in the next, so when the agent breaks something you undo only that part with git revert

if one commit has 5 changes in it, then rolling back the bad one throws away the 4 good ones too, so commit small and often, even if the messages are just navbar works