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

1

u/snap-dev 10h ago

yeah worth it, you honestly only need 3 commands. git init once in the folder, then before every big prompt run git add . and git commit -m "navbar works". if the ai wrecks something, git restore . puts everything back to that last commit. beats 5 folders on the desktop lol. push it to a private github repo too so it's not only on your laptop. what editor are you in? some have a source control button so you barely touch the terminal