Pages

Thursday, April 12, 2018

Map the file w.r.t Commit that it belongs it

Map the file w.r.t Commit that it belongs it

If we want to find the commit , to which the particular file belongs to (or) under which commit, this file was modified / added in GIT. we can use the following command .

git log --pretty="%H" -1 <Full Path to the File>

Reference:

https://stackoverflow.com/questions/38621298/find-to-which-git-commit-a-file-belongs

No comments:

Post a Comment