git-hash

Get the current git hash in a Python script

Get the current git hash in a Python script Question: I would like to include the current git hash in the output of a Python script (as a the version number of the code that generated that output). How can I access the current git hash in my Python script? Asked By: Victor || Source …

Total answers: 12