 <p>Thanks for the reply..</p> <p>I got below command working to meet my scenario for now.. but trying to see if there is any direct command to find the latest ID of a file on remote server...</p> <blockquote> <p>git log 'branch-name' -- 'file-name'</p> </blockquote> <p>which displaying log messages with ID, Author and Date.. I am fetching the top first line with unix pipe head command.</p> <blockquote> <p>git log 'branch-name' -- 'file-name' | head -1</p> </blockquote>