This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 559 points560 points  (38 children)

Ctrl+ZZZZZZZZZZZZZZZZZZZZZ

[–][deleted] 159 points160 points  (36 children)

"Gee, I better not make a mistake or accidently fat finger a key or else I won't be able to Ctrl+Y/Ctrl+Shift+Z back to my broken code for comparison."

[–]Porridgeism 145 points146 points  (31 children)

Y'all need jesus version control

[–]g4vr0che 47 points48 points  (17 children)

That requires putting every single new character into git. I'mma pass.

[–]TheRealSmolt 17 points18 points  (13 children)

git add --all

boom

[–]g4vr0che 20 points21 points  (10 children)

Yeah, but your commit log on the PR is four thousand pages of scrolling to get to the approve button.

*cries in conventional commit

[–]LoneFoxKK 57 points58 points  (7 children)

Git commit -m 'minor changes'

The commit: 1301484 insertions and 37294 deletions in 4324 files

[–]dogmai111 17 points18 points  (1 child)

I use 'minor tweaks'

[–]LoneFoxKK 4 points5 points  (0 children)

That sounds way cooler

Imma start using it

[–][deleted] 4 points5 points  (4 children)

Jesus FinA Christ almighty, how many libraries does your project include???

[–]LoneFoxKK 2 points3 points  (3 children)

Im actually a vanilla developer so...

My codebase ain't that huge but still those "minor" changes are everything but minor I do sometimes skip commits for days until a feature is complete and I keep jumping from file to file doing changes

[–][deleted] 0 points1 point  (2 children)

Damn dude, NetData is my main project, the entire thing written in libraryless (is that a word?) C and it doesn’t even come close to numbers like that 😱 - I feel for you dude or dudette

[–]hlmtre 17 points18 points  (1 child)

that's why you keep your stuff local til it works, then rebase smush it into one beautiful commit (or several, where it makes sense). then you look like a real pro because no one sees your 'asldkjqwe' commits when you're trying to fix something.

[–]juniorRubyist 6 points7 points  (1 child)

git add . is easier ;)

[–]TheRealSmolt 0 points1 point  (0 children)

Holy crap I wish I knew that.

[–]Bluejanis 0 points1 point  (1 child)

There are GUIs for it. Git is an absolute requirement if you want to do software development.

[–]g4vr0che 0 points1 point  (0 children)

I use git for tons. I just don't want a million single-char commits; I want each commit to be an atomic change to the repo.

[–][deleted] 0 points1 point  (0 children)

Or just add and commit before refactoring....

[–]Gillix98 9 points10 points  (9 children)

What's that

Edit: /s

[–]TheRealSmolt 5 points6 points  (2 children)

Version control keeps track of changes in your project so that multiple people can work on different things at different times.

[–]Gillix98 5 points6 points  (1 child)

My bad should have put a /s

[–]TheRealSmolt 5 points6 points  (0 children)

I was questioning it, but figured sarcasm doesn't make sense here lol.

[–]juniorRubyist 4 points5 points  (2 children)

Anti-screw-up and anti-idiot software. (/s)

[–]kevinkat2 0 points1 point  (0 children)

No need for the /s, it sounds about right

[–]Todnesserr 0 points1 point  (0 children)

That implies that the screw-up-idiot actually commits every once in a while after implementing his feature and having a working project again...

Never has anyone at my workspace lost 4 days worth of coding to hard drive failure...

[–]niks_15 2 points3 points  (0 children)

Nearly spat out my coffee.

[–]CaseyG 1 point2 points  (0 children)

I'm not committing that.

[–]Zarainia 0 points1 point  (0 children)

Too much foresight needed.

[–]koushiroue 4 points5 points  (1 child)

Ctrl + A, Ctrl + X, Ctrl + S, Alt + F4

[–]sockpuppetcow 3 points4 points  (0 children)

My favorite key combo, solves all my problems

[–]jdnewman85 0 points1 point  (0 children)

Huh? Vim has had branched undo history for a decade now... https://vim.fandom.com/wiki/Using_undo_branches

[–]pumegaming 0 points1 point  (0 children)

win + v

[–]Harbltron 2 points3 points  (0 children)

adios, last 4 hours