I am new to Git.I want to clone my remote github repository (git://github.com/eltejaee/BIC2.git) with python script.I know that "dulwich" and "gitpython" are suitable but I couldn't clone or pull with them .What is the best python code to clone my remote github repository?
4382 次
3 に答える
2
git-pythonまたはpygitを使用できるいくつかのモジュールがあります
クローン/プルするだけの場合は、システム コマンドを使用できます。
os.system("git clone ...")
os.system("git pull")
コマンドの出力も必要な場合は、サブプロセスを使用することをお勧めします
Github の場合、python-githubを使用できます
于 2012-12-10T08:15:42.800 に答える
0
github用のPythonラッパーがあります
于 2012-12-10T08:04:38.867 に答える