in hooks/post_gen_project.py [0:0]
def init_git():
"""
Initialises git on the new project folder
"""
GIT_COMMANDS = [
["git", "init"],
["git", "add", "."],
["git", "commit", "-a", "-m", "Initial Commit."]
]
for command in GIT_COMMANDS:
git = Popen(command, cwd=PROJECT_DIRECTORY)
git.wait()