10 lines
154 B
Python
10 lines
154 B
Python
import os
|
|
import git
|
|
|
|
|
|
# Global variables and constant
|
|
current_dir = os.getcwd()
|
|
repo = git.Repo(current_dir)
|
|
tree = repo.head.commit.message
|
|
print(tree)
|