3
我在比較本地主站(與原始/主站相同提交)和生產/主站時遇到了問題。Git:將本地分支與遠程分段和產品進行比較
$ git remote -v
origin [email protected]:mydomain/mydomain.git (fetch)
origin [email protected]:mydomain/mydomain.git (push)
production [email protected]:mydomain-production.git (fetch)
production [email protected]:mydomain-production.git (push)
staging [email protected]:mydomain-staging.git (fetch)
staging [email protected]:mydomain-staging.git (push)
我似乎能夠得到一個差異與staging/master
但我得到的錯誤與production/master
:
$ git diff staging/master
[i'm shown diff]
$ git diff production/master
fatal: ambiguous argument 'production/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
任何人看到我搞砸了?
我真正想要做的是看到,並不是那些與像git diff production/master...master
其他遙控器上本地主的提交,但是,讓同樣的錯誤:
$ git diff production/master...master
fatal: ambiguous argument 'production/master...master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
我已經在過去使用的是什麼混帳'取生產master && git diff master master production/master'。那對你有用嗎? – avacariu 2014-08-29 00:11:40
工作。我想我從來沒有從這個遙控器上g f???!?不完全確定。 – Meltemi 2014-08-29 00:14:54
太棒了!那麼我會將它添加爲答案。 – avacariu 2014-08-29 00:38:53