Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
gitpython ライブラリのみを使用して、(差分ファイルの形式で) パッチをレポに適用する方法はありますか?
つまり、git-apply コマンドに相当する gitpython はありますか?
解決策は行うことです
r = Repo('path-to-repo') r.git.execute(['git','apply','patch.diff'])
以前にこれを試したことがありますが、引数リストの先頭にある「git」を省略していたため、コマンドが存在しないというエラーが発生しました。