如何將Github pull請求中包含的更改作爲統一比較下載?下載Github pull request作爲統一比較
回答
要查看提交作爲一個diff /補丁文件,只需添加.diff
或.patch
到URL的末尾,例如:
有點相關,讓git下載pull請求123並在本地修補到mylocalbranch
,運行:
git checkout -b mylocalbranch
git pull origin pull/921/head
或者將pull request請求到一個新的PR分支上 **'git fetch origin pull/921/head:PR' ** 然後合併你的當前分支,給你一個機會去查看 **' git merge PR --no-commit --no-ff' ** – MoonStom 2015-03-04 21:08:06
完整的文檔位於https://help.github.com/articles/checking-out-pull-requests-locally/ – JBert 2016-02-23 11:22:35
這需要您設置Git與您的憑據。您無法匿名測試建議的更改(例如,您可以手動應用差異)。 Git的另一個例子是採取簡單的工作流程並使其變得困難。 – jww 2017-03-23 18:39:42
- 1. github pull request branch rebase detection
- 2. List forked github repositories without pull request
- 3. npm從github pull request中安裝
- 4. 是否可以重用GitHub Pull Request?
- 5. git request-pull:如何在命令行上創建(github)pull請求?
- 6. Bitbucket Pull Request refspec
- 7. 爲什麼GitHub會調用外部提交,「Pull Request」?
- 8. 「pull request」-diff view with gitweb
- 9. Git鉤子在Bitbucket中產生Github「Create Pull Request」鏈接嗎
- 10. 使用Jenkins獲取Github Pull Request的Multiples檢查
- 11. GitHub Pull Request Builder不在Jenkins中構建Xcode 7.2.1
- 12. git push/pull - 默認爲github
- 13. Github:跨叉比較?
- 14. 比較然後下載
- 15. 在Git Pull Request後保持本地分支工作
- 16. github下載 - 它只能是一個平面文件系統嗎?
- 17. 準確的git命令行等效於Github中的「Pull Request」和「Fork Repo」按鈕
- 18. 如何在GitHub Pull Request代碼審查後保持清晰的歷史記錄?
- 19. 如何讓git diff顯示與github的pull request diff相同的結果?
- 20. 如何獲取通過GitHub API按數字過濾的Pull Request列表?
- 21. 比較載體
- 22. 來自pull請求的GitHub克隆?
- 23. 使用系統日期作爲比較文件的文件名
- 24. Traceroute比較和統計
- 25. 比較兩個字符串作爲比較器中的最後一個差分?
- 26. 更改github差異並列比較?
- 27. 如何評論長期github比較
- 28. 唯一比較不爲空
- 29. 你曾經對你自己的Forked repo做過pull request嗎?
- 30. 從GitHub下載代碼安全嗎?
正常情況下,PR補丁鏈接發送給接受PR的人員。 – kenorb 2013-06-21 09:15:36
但[GitLab](https://gitlab.com/)中未實現此功能,但是我創建了[功能請求](http://feedback.gitlab.com/forums/176466-general/suggestions/6737196 -allow-a-diff-patch-file-to-be-downloaded-from-a-me)所以請添加你的投票。 – colan 2014-11-19 16:01:21
參考[_Pro Git_第6.3.3節「管理合並請求:電子郵件通知」]的最後一項(https://git-scm.com/book/en/v2/GitHub-Maintaining-a-Project#_email_notifications) – Geremia 2017-03-06 14:40:14