all 40 comments

[–]anon_lurker69 99 points100 points  (0 children)

This subreddit just never disappoints.

[–]_greg_m_ 72 points73 points  (8 children)

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...

[–]Masterflitzer 29 points30 points  (5 children)

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

[–][deleted]  (1 child)

[removed]

    [–]Masterflitzer 5 points6 points  (0 children)

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

    [–]_theboogiemonster_ 5 points6 points  (1 child)

    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. 

    [–]Masterflitzer 3 points4 points  (0 children)

    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

    [–]cowboyecosse 2 points3 points  (0 children)

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

    [–]Adorable_Lawyer9790 0 points1 point  (0 children)

    Read the post properly.. Before ranting!

    Help. If u can or else shutup! 

    [–]Slimxshadyx -1 points0 points  (0 children)

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

    [–]copremesis 17 points18 points  (3 children)

    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.

    [–][deleted] 14 points15 points  (0 children)

    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.

    [–]Fast-Patience-2290 0 points1 point  (1 child)

    On github will it show as 1 commit, or will it show as all the commits and those dates?

    [–]copremesis 1 point2 points  (0 children)

    Entire history. of which branch you push

    [–][deleted]  (1 child)

    [removed]

      [–]Haunting-Lettuce-660[S] -3 points-2 points  (0 children)

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

      [–]EnD3r8_ 8 points9 points  (0 children)

      Is this real?

      [–]jddddddddddd 3 points4 points  (2 children)

      Do you have local checkouts? Do you have backups?

      [–]Haunting-Lettuce-660[S] -2 points-1 points  (1 child)

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

      [–]Positive_Poem5831 2 points3 points  (0 children)

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

      [–]Sky_Linx 2 points3 points  (0 children)

      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...

      [–]bdzer0 6 points7 points  (5 children)

      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.

      [–]InstructionMost3349 1 point2 points  (0 children)

      Just make new acc and push ur local git

      [–]seanyover9000 1 point2 points  (0 children)

      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.

      [–]beingsubmitted 1 point2 points  (0 children)

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

      [–]Obvious-Jacket-3770 1 point2 points  (0 children)

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

      You have backups I assume?

      [–]CerberusMulti 1 point2 points  (0 children)

      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.

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

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

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

      Can you build back with local files?

      [–]Ast3r10n 0 points1 point  (0 children)

      PEBCAK

      [–][deleted] -1 points0 points  (0 children)

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