如何將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. Hubot的github-pull-request-notifier.coffee
- 4. npm從github pull request中安裝
- 5. 是否可以重用GitHub Pull Request?
- 6. git request-pull:如何在命令行上創建(github)pull請求?
- 7. Bitbucket Pull Request refspec
- 8. 爲什麼GitHub會調用外部提交,「Pull Request」?
- 9. 「pull request」-diff view with gitweb
- 10. 使用Jenkins獲取Github Pull Request的Multiples檢查
- 11. GitHub Pull Request Builder不在Jenkins中構建Xcode 7.2.1
- 12. Github Pull-Request有1k提交而不是我的1提交
- 13. Git鉤子在Bitbucket中產生Github「Create Pull Request」鏈接嗎
- 14. git push/pull - 默認爲github
- 15. Github:跨叉比較?
- 16. 比較然後下載
- 17. git request-pull:如何將git request-pull電子郵件應用於您的回購
- 18. 爲什麼我的Github'Open pull request'頁面中有一條橙線?
- 19. 在Git Pull Request後保持本地分支工作
- 20. Github for mac下載雪豹
- 21. github下載 - 它只能是一個平面文件系統嗎?
- 22. 比較線到下一個
- 23. 如何獲取通過GitHub API按數字過濾的Pull Request列表?
- 24. 準確的git命令行等效於Github中的「Pull Request」和「Fork Repo」按鈕
- 25. 如何在GitHub Pull Request代碼審查後保持清晰的歷史記錄?
- 26. 如何讓git diff顯示與github的pull request diff相同的結果?
- 27. 乾淨的git pull-request到上游
- 28. TeamCity building Git/GitHub pull請求
- 29. Git Pull:使用GitHub EGit
- 30. 比較載體
正常情況下,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