determine comit is in which tag of remote directory code example Example: git find out commit for tag $ git rev-list -n 1 $TAG