1

Is it possible to know when-a-file-was-deleted-in-git, before the deletion has been commited ?

thanks

jjrr
  • 1,038
  • 2
  • 13
  • 26
  • 5
    As in "at 13:00 the deletion was commited, but at 12:45" the file was deleted? No, git doesn't store that kind of information. Its history is restricted to commit history. – Joachim Sauer Feb 15 '23 at 13:41
  • yeah... actually, I meant, without even committing the deletion -- but I guess the answer is also negative – jjrr Feb 15 '23 at 13:43
  • extract from chatGPT answer :) "...Therefore, if a file has been deleted but the deletion has not yet been committed, there is no way to know when the deletion occurred using Git commands. " – jjrr Feb 15 '23 at 13:45
  • 3
    Yeah, if you don't do it *with git* or *to git*, git will not know about it. Btw., ChatGPT has ... issues. Specifically when it comes to giving technical answers. Read [the SO policy for details](https://stackoverflow.com/help/gpt-policy). – Joachim Sauer Feb 15 '23 at 13:48

0 Answers0