I moved the content of an old file to a new one, made a few changes and committed everything.
Unfortunately I didn't commit directly after "renaming" the file, so git didn' t track that and the now history is lost.
Is there any way to get it back?
I moved the content of an old file to a new one, made a few changes and committed everything.
Unfortunately I didn't commit directly after "renaming" the file, so git didn' t track that and the now history is lost.
Is there any way to get it back?
History is not lost, it is accessible by old path:
git log -- OLD_PATH
git may or may not detect the move, but in the commit you should see that line added to the new file and removed from the old one, so it is discoverable if somebody searches for its origin.