2

I restored a deleted file using: git checkout some_commit deleted_file, then I try to git blame it, but all its hisotry is lost. How can I keep the history?

1 Answer 1

1

Try this:

git blame --reverse some_commit..HEAD -- deleted_file 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.