pygit2

    0熱度

    1回答

    我正在使用Pygit2在我正在處理的回購中運行某些操作。 如果我的代碼文件不在回購的根目錄,我該如何從回購庫中的任何位置獲取回購的路徑? 如果從root調用該函數,但是如果從存儲庫代碼中的任何位置運行它,該怎麼辦? $ cd /home/test/Desktop/code/Project $ git status On branch master Your branch is up-to-d

    1熱度

    1回答

    我試圖安裝在CentOS pygit2和我收到以下錯誤 我將不勝感激,如果任何人都可以有什麼建議可能是錯的 感謝 You are using pip version 7.1.0, however version 9.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command

    0熱度

    1回答

    我使用pygit2訪問回購該狀態 status = repo.status() for filepath,flags in status.items(): print ("path %s flags %d", filepath, flags) 我不似乎能夠找到關於如何解釋標誌 可能有人點任何文件我在分辯方向請

    0熱度

    1回答

    我想克隆一個存儲庫,更改文件並將這些已更改的文件推回到原始分支。 我可以克隆與 repo = pygit2.clone_repository(repo_url, local_dir, checkout_branch="test_it") 但回購什麼我現在需要做的推更改遠程?我只想提交一個特定文件的更改,即使更多文件被更改。 希望有人能幫助我。 TIA

    0熱度

    1回答

    This question涉及如何執行與pygit2的合併,但是,據我所知,這將導致一個新的提交。有沒有辦法執行rebase,這不會導致一個新的提交,並會簡單地快速轉發分支引用以對應於給定遠程的最新版本?

    0熱度

    1回答

    我想克隆一些遠程存儲庫,但只檢索主分支。 我的代碼當前獲取所有分支。 def init_remote(repo, name, url): # Create the remote with a mirroring url remote = repo.remotes.create(name, url, "+refs/*:refs/*") # And set the con

    1熱度

    1回答

    我使用pygit2以編程方式從包含自簽名證書的內部服務器複製回購。 pygit2在證書上引發錯誤,我如何關閉驗證?

    0熱度

    1回答

    現在我使用git svn克隆回購,當我想要獲取所有提交併將數據存儲到數據庫時。 爲了獲得所有提交我使用pygit2.Repository,但我看到我只接收'/ trunk /'分支提交。 如果我在終端使用git branch -a我可以看到所有的分支: * master remotes/origin/test-1 remotes/origin/[email protected]

    1熱度

    1回答

    我試圖使用pip python腳本安裝pygit2,但它總是失敗,此消息 error: Unable to find vcvarsall.bat 我沒有安裝Visual Studio,所以我試圖用MinGW編譯libgit2和它的工作。但pip仍不能確定安裝了libgit2。 我該怎麼辦? 編輯 我安裝了Visual Studio 2010表達並再次運行該命令,這一次的錯誤不同: Downl

    2熱度

    1回答

    我在我的燒瓶應用filters.py文件,其內容爲: # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals, print_function import arrow from fresque import APP @APP.template_filter('short') de