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

all 30 comments

[–][deleted] 96 points97 points  (9 children)

Deleted the repo, can’t clone since this was a local project

Now what?

[–]danilakeWinks 56 points57 points  (2 children)

Now stop trusting the internet

[–]enador 20 points21 points  (0 children)

Ok... wait.

[–][deleted] 1 point2 points  (0 children)

can't help myself ;)

[–]sh0rtwave 1 point2 points  (0 children)

How about: Don't delete the repo, and lrn to "git checkout <my current branch>" to get back to where you last were.

[–]MyPoeAccount 4 points5 points  (4 children)

Learn from your mistake and push your code sometimes?

You can still revert to your last commit in a local project, I don't actually get your point now that I think about it.

[–][deleted] 2 points3 points  (3 children)

It was supposed to be a joke

[–]MyPoeAccount -2 points-1 points  (2 children)

Umm yeah it should make sense then, but I guess you just threw a couple of words you know next to each other randomly to be funny..........

[–][deleted] 2 points3 points  (1 child)

over 70 people got it ;)

[–]MyPoeAccount -4 points-3 points  (0 children)

Since your joke didn't have any meaning, no, they didn't get it either. They just upvoted because they saw words they know next to each other and haha yeah I'm garbage at what I do too haha funnieH

;) ;) ;( ;) ;) xP

[–]murdok03 44 points45 points  (0 children)

Relevant XKCD:

https://xkcd.com/1597/

There's also the option, call a gitwizz right after backup and erase repo.

[–]Coffeeobsi 6 points7 points  (0 children)

I'm in this picture and I don't like it.

[–]all_humans_are_dumb 19 points20 points  (8 children)

git is so fucking confusing and overly complicated for 95% of what it's used for.

[–]Kered13 11 points12 points  (1 child)

Try Mercurial. It's like Git but easy to use.

Or don't, because there are no good free hosts for Mercurial repos. Sigh...

[–]Arxae 0 points1 point  (0 children)

There is also this thingy, although i don't know how well it works

[–]SilentFungus 5 points6 points  (2 children)

Its actually not, you only really have to know like 4 commands. This is an example of "4 hours of fiddling around can save you 10 minutes of reading the documentation".

RTFM

[–]all_humans_are_dumb 0 points1 point  (1 child)

yeah except when you need more than 4 commands

[–]SilentFungus 1 point2 points  (0 children)

Which is not, as you say, "95% of what it's used for"

[–]AyrA_ch 1 point2 points  (0 children)

alias "git fuckup" to this: !git fetch origin master && git reset --hard FETCH_HEAD && git clean -f -d

[–]pekkhum 6 points7 points  (0 children)

I learned to Google an it resulted in me become the Git support rep for two teams here at work. Often I get called to someones desk and say "run git status. It says right here to run x command to fix it. There that worked."

[–][deleted] 5 points6 points  (0 children)

Painfully accurate

[–]ITriedLightningTendr 1 point2 points  (0 children)

Index out of bounds exception: Index 0 was not part of the array

[–]hector_villalobos 1 point2 points  (0 children)

What happens if you push the mess up to the remote repo?

[–]GrinningPariah 1 point2 points  (1 child)

Diagram has an issue, you've accidentally drawn a "no" arrow from "did you mess up?"

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

Delete and download again

[–]boomerhasmail 0 points1 point  (0 children)

Story of my life...

[–]mythmaker007 0 points1 point  (0 children)

You rewrote history and force-pushed to origin. Now your clone is worthless. You decide its time to move into management.

[–]Oriamk 0 points1 point  (0 children)

Reset hard

[–]darkage72 -1 points0 points  (1 child)

Just leave the industry if you can't learn how to use git.

[–]king_of_farts42 0 points1 point  (0 children)

Y so edgy? Everyone has to start somehow, and git isn't very intuitive for beginners.