2012-12-27 93 views
5

我有一個分支已經合併到它的幾次主(以獲得最新的錯誤修復該功能分支)。現在我想看看在我開始在該分部工作後所做的所有更改,因此我嘗試了git diff start_commit..HEAD。但是我注意到git也顯示了那些合併的提交,所以這不是我想要的。GitHub如何形成一個拉請求

然後我嘗試從該分支創建一個拉請求,看看是否適用於GitHub的pull請求,但注意到pull請求只顯示我想要的更改。

分行看起來像這樣

master: A---B---C---D---E---F 
     \  \  \ 
feature: G---H---I---J---K---L 

而問題是,git的差異A..L顯示了所有從A-L承諾,但GitHub的拉請求僅顯示G-L這是我想要的。

那麼GitHub使用什麼命令(或命令)來形成拉請求?

編輯添加一張圖片

+0

'git diff origin/master your_feature_branch'? –

+0

不是的,這也包括其他發散後的主人提交.. – OsQu

回答

4

檢查了這一點。從git文檔:

Comparing branches 

    $ git diff topic master <1> 
    $ git diff topic..master <2> 
    $ git diff topic...master <3> 

1. Changes between the tips of the topic and the master branches. 

2. Same as above. 

3. Changes that occurred on the master branch since when the topic branch was started off it. 
+0

輝煌!三點是我尋找的東西!謝謝 :) – OsQu