从我用来执行此操作的命令行:
$git --git-dir=/opt/git/annotation.git --work-tree=/path/to/worktree/ commit -m 'commit message command line'
现在,我必须使用GitPython从python脚本调用git,这是我尝试的:
^{pr2}$我有:
File "/path/to/script.py", line 54, in git_commit
repo.index.add('/path/to/worktree/')
...
raise InvalidGitRepositoryError("require non-bare repository")
InvalidGitRepositoryError: require non-bare repository
目前没有回答
相关问题 更多 >
编程相关推荐