2013-11-23 88 views
0

殼牌輸出:結帳分支成爲結賬文件

[email protected] /web/learn/angular/learn/angularjs-book 
$ git branch --l 
* forAnyOption 
    forRawgithub 
    master 
    myMatser 

[email protected] /web/learn/angular/learn/angularjs-book 
$ git co master 
切換到分支 'master' 

[email protected] /web/learn/angular/learn/angularjs-book 
$ git co myMaster 
error: pathspec 'myMaster' did not match any file(s) known to git. 

[email protected] /web/learn/angular/learn/angularjs-book 
$ git checkout myMaster 
error: pathspec 'myMaster' did not match any file(s) known to git. 

$ git --version 
git version 1.8.3.4 

如何直接改變分支?

回答

2

在分支列表名稱是myMatser和你試圖檢出myMaster ...

在這種情況下,git checkout myMatser是什麼y你會想要做的。

+0

對不起,我的錯誤,謝謝〜 – wener

2

錯字在

$ git的分支--L * forAnyOption forRawgithub 主 myMatser

matser!=主