r/github • • Oct 14 '24

Accidentally deleted Github account

I feel so lost,all my work for the last 4 years is lost,everything,i feel so dumb.I wanted to end a subscription but couldn't find a clear place and i thought i was on second account,so i decided to delete the account,but i was on my primary account and accidentally deleted all of my repos everythinng!!

0 Upvotes

39 comments sorted by

5

u/jddddddddddd Oct 14 '24

Do you have local checkouts? Do you have backups?

-1

u/Haunting-Lettuce-660 Oct 14 '24

not for all repos, i have some checkouts but just for some most recent,what worries me is the commit history and the contributions.

3

u/Positive_Poem5831 Oct 14 '24

If you have a local checkout then it should contain the commit history. At least that is how Git works according to my understanding.

6

u/bdzer0 Oct 14 '24

If you have local clones of your repos, you haven't lost the repositories... just the GitHub 'trappings' such as PR's, issues, discussions...

If someone forked any of your repositories, those would have data up to the last sync point..

You could try to get it restored by submitting a support ticket, however I doubt that would work.

-20

u/Haunting-Lettuce-660 Oct 14 '24

i already submitted a ticket,i think they delete all of data immidiately i don't know why they do this,there would be more incidents like this.

21

u/DapperNurd Oct 14 '24

Well, tbh, they make it pretty clear and not easy to delete an account, even a repo for that matter.

14

u/[deleted] Oct 14 '24

[removed] — view removed comment

101

u/anon_lurker69 Oct 14 '24

This subreddit just never disappoints.

71

u/_greg_m_ Oct 14 '24

Sorry, can't help, but how can you delete the account ACCIDENTALLY? In the settings it's even highlighted in red and it says "Once you delete your account, there is no going back. Please be certain.". Just wandering...

31

u/Masterflitzer Oct 14 '24

also don't you have to copy & paste account name? so you cannot confuse it with second account

6

u/_theboogiemonster_ Oct 14 '24

Considering all these hoops you have to jump through to delete your account and he still did it, I wouldnt worry too much about the code that was actually lost. 

4

u/Masterflitzer Oct 14 '24

in any case i always recommend having at least the important repos cloned locally, if it's that many a quick script that goes through the inactive ones and run a git pull on main is a possibility, and it's so easy to do everyone who writers code can do it, my point is if you really care about the code it's so simple to not loose it

3

u/cowboyecosse Oct 15 '24

Better than that, you need to type the words “delete my account”.

16

u/[deleted] Oct 14 '24

[removed] — view removed comment

5

u/Masterflitzer Oct 14 '24

github did it in the past but only for big repos, not random users, so i'd say OPs chances are near 0%

1

u/Adorable_Lawyer9790 Jun 05 '25

Read the post properly.. Before ranting!

Help. If u can or else shutup! 

0

u/Slimxshadyx Oct 14 '24

In the post he says he thought he was deleting his second account, not his main account

19

u/copremesis Oct 14 '24

You know that git is decentralized. So if you have clones on any of your devices you can create a new account and push them there. They may be a few branches back but usually your typical work in progress is "bleeding edge" ... so just think of where you cloned your projects ... and modify the `.git/config` to point to a new remote ... and you should be able to reintegrate the projects that you are able to find.

14

u/[deleted] Oct 14 '24

I'm willing to bet that they don't know that. Sadly so so so many people think `git` is `Github`.

You might think that developers could recognize what each individual piece of software is but they really cant.

0

u/[deleted] Oct 14 '24

[deleted]

2

u/copremesis Oct 14 '24 edited Oct 14 '24

Entire history. of which branch you push

9

u/EnD3r8_ Oct 14 '24

Is this real?

3

u/Sky_Linx Oct 14 '24

I really, really strugge to understand how someone can delete their primary account accidentally. It's beyond me. Where you sleeping/drunk or how is that possible? Anyway, I guess you have local copies of all your repos so you can create a new account, right? Don't tell me you don't have backups...

2

u/InstructionMost3349 Oct 14 '24

Just make new acc and push ur local git

2

u/seanyover9000 Oct 14 '24

You have local copies of all of your repos through git on the device that you use to push code to Github.

Deleting remote does not delete cloned local copies.

You can restore all of them if you still have access to the computer. And if you havent accidently deleted them as well of course.

2

u/beingsubmitted Oct 14 '24

Everything I wrote before 3 days ago is trash and needed a rewrite anyhow. You'll be okay. Do it again.

2

u/Obvious-Jacket-3770 Oct 14 '24

Just grab the work from your backups and push to the other account.

You have backups I assume?

2

u/CerberusMulti Oct 15 '24

When you "accidentally" ignore all warnings, don't double check what you are doing and jump through all the loops.. At some point, it will stop being accidental and become intentional.

2

u/[deleted] Oct 15 '24

Deleting GitHub accidentally is not possible. You did multiple things to delete it. So that’s intentional or I don’t know.

1

u/[deleted] Oct 14 '24

Can you build back with local files?

0

u/[deleted] Oct 14 '24

Because you have absolutely no local copy of your code, right? In the cloud we trust, right?

-6

u/epasveer Oct 14 '24

Contact them.

-10

u/Haunting-Lettuce-660 Oct 14 '24

done it.

-2

u/fori1to10 Oct 14 '24

Did it work ?

-8

u/Haunting-Lettuce-660 Oct 14 '24

Nothing yet,still waiting 🥱

-2

u/fori1to10 Oct 14 '24

Hope they reply !

16

u/[deleted] Oct 14 '24 edited Oct 14 '24

[removed] — view removed comment

-2

u/Haunting-Lettuce-660 Oct 14 '24

no i didn't unfortunatelly, i accepted the accident,there is no roll back here Lol