{"thread":{"id":"60066","subject":"Git-filter —force - my code disappeared before being pushed","startedAt":"2023-08-04T22:09:16Z","lastAt":"2023-08-04T22:09:16Z","messageCount":1,"participants":["curs java2"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"480171","messageId":"8CB4A72D-1047-48B0-9371-580C0F259D94@gmail.com","threadId":"60066","inReplyTo":null,"subject":"Git-filter —force - my code disappeared before being pushed","fromName":"curs java2","fromEmail":"cursjava2@gmail.com","sentAt":"2023-08-04T22:08:46Z","receivedAt":"2023-08-04T22:09:16Z","isPatch":false,"sender":{"key":"cursjava2@gmail.com","avatar":null},"body":"Hello,\n\nMy 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.\nBecause 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.\n\nI had superficially read that Git rejected my Push due to caching that file and should use Git Filter\nBecause 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.\n\nNow 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. \n\nIs anyone so kind to help me recover my code, if there s any chance? I am using Osx last version on my computer.\n\nMy email and telegram (L102030  ) are open for any recommendation.\n\nThank you in advance.\nKind regards!\nLaura "}]}