git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git-filter —force - my code disappeared before being pushed

From
CJcurs java2 <cursjava2@gmail.com>
Date
Aug 4, 2023, 22:08 UTC
Message-ID
<8CB4A72D-1047-48B0-9371-580C0F259D94@gmail.com>
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

Message 1 of 1 in “Git-filter —force - my code disappeared before being pushed”
  1. curs java2Aug 4, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.