torchkit.utils.git

torchkit.utils.git.git_commit_hash()

Return the git commit hash of the current directory.

Note

Will return a fatal: not a git repository string if the command fails.

Return type

str

torchkit.utils.git.git_revision_hash()[source]

Return the git commit hash of the current directory.

Note

Will return a fatal: not a git repository string if the command fails.

Return type

str