I was searching for a deleted file content and wanted to see which commit, the file was deleted. Finally, was able to resolve the same using the below commands.
git log -p -- DeletedFilePath #Here, p stands for patch mode or
git rev-list -n 1 HEAD -- DeletedFilePath # Here, we are printing commits in reverse chronological way
After I found the commit, I went to VSO to search for the commit. We can also find the commit content using below git command.
git show
git log -p -- DeletedFilePath #Here, p stands for patch mode or
git rev-list -n 1 HEAD -- DeletedFilePath # Here, we are printing commits in reverse chronological way
After I found the commit, I went to VSO to search for the commit. We can also find the commit content using below git command.
git show
No comments:
Post a Comment