在哪個版本的git中添加了-u開關?當-u開關添加到git-push?
中央大學Flordia的eustis服務器正在運行1.5.4.3。嘗試在git-push上使用-u選項時出現以下錯誤。
$ git push -u origin master
error: unknown switch `u'
...
在哪個版本的git中添加了-u開關?當-u開關添加到git-push?
中央大學Flordia的eustis服務器正在運行1.5.4.3。嘗試在git-push上使用-u選項時出現以下錯誤。
$ git push -u origin master
error: unknown switch `u'
...
版本1.7.0。
$ git log -S-u Documentation/git-push.txt
commit e9fcd1e2121100d43d2d212eb6c6f1fc82aade1d
Author: Ilari Liusvaara <[email protected]>
Date: Sat Jan 16 23:45:31 2010 +0200
Add push --set-upstream
Frequent complaint is lack of easy way to set up upstream (tracking)
references for git pull to work as part of push command. So add switch
--set-upstream (-u) to do just that.
...
$ git tag --contains e9fcd1e
v1.7.0-rc0~71^2
當你想找到這樣的事情,最簡單的方法就是用grep發行說明(無論是通過克隆的git源,也可以使用github上的高級搜索功能和搜索混帳鏡中的一個)。
版本1.7.0版本說明有以下幾點:
「混帳推」學習「混帳推--set上游產地forker:forkee」那 讓您配置「forker」分支後從「forkee」
分支從「原點」拉。
https://github.com/git/git/blob/master/Documentation/RelNotes/1.7.0.txt