我覺得Bitbucket非常方便的一件事情是當你將一個新的分支推到一個託管在Bitbucket中的repo時,它會打印出終端屏幕)一個URL,您可以點擊該URL來創建您剛剛推送的分支中的PR。例如:Git鉤子在Bitbucket中產生Github「Create Pull Request」鏈接嗎
$ git push origin someBranch
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 313 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote:
remote: Create pull request for someBranch:
remote: https://bitbucket.mydomain.com/projects/PRO/repos/someRepo/compare/commits?sourceBranch=refs/heads/someBranch
remote:
To ssh://bitbucket.mydomain.com:7999/pro/somerepo.git
f6718d4..410cbcb someBranch -> someBranch
我覺得這是一個巨大的節省時間過要到位桶,導航到回購,找到「創建拉請求」按鈕等。因此,我想類似的東西當我使用Github上託管的回購協議時 - 在推出新分支後,請將它打印到終端上,我可以打開一個URL以訪問Github上的創建公關屏幕。任何人都知道這樣的事情?
我知道這裏有一個CLI命令Github,它有一個pull-request
命令,但是每次都會提示你輸入密碼,這很煩人,而TBH我喜歡在實際創建PR前查看UI中的差異。