git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: curs java2 <cursjava2@gmail.com>
To: git@vger.kernel.org
Subject: Git-filter —force - my code disappeared before being pushed
Date: Sat, 5 Aug 2023 01:08:46 +0300	[thread overview]
Message-ID: <8CB4A72D-1047-48B0-9371-580C0F259D94@gmail.com> (raw)

Hello,

My name is Laura, I m a QA engineer, I am in a critical situation where I have lost my code which was not pushed on repository and cannot get it back on local computer due to a fatal mistake.
Because I had a deleted big file in my project/branch (an .ipa file) Git did not let me Push the code even though the file was not anymore in my project. That was very curious.

I had superficially read that Git rejected my Push due to caching that file and should use Git Filter
Because git filter command on my branch did not work I have added — force argument and it deleted my code without having no clue about this consequence.

Now I can see in git log 2 commits previous to this calamity moment but I cannot see the commits done right before the fatal Push and git filter. I cannot restore any commit I get permission denied and I don t want to loose any potential data that could be recovered at this point. 

Is anyone so kind to help me recover my code, if there s any chance? I am using Osx last version on my computer.

My email and telegram (L102030  ) are open for any recommendation.

Thank you in advance.
Kind regards!
Laura 

                 reply	other threads:[~2023-08-04 22:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8CB4A72D-1047-48B0-9371-580C0F259D94@gmail.com \
    --to=cursjava2@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).