2013-06-20 12 views
5

クローンに-bまたは--branchフラグを使用して、git repoをクローンして1つのコマンドでタグをチェックアウトしようとすると、あなたのようなエラーに遭遇することがありgit clone -bタグを指定すると警告が表示されます - 警告:リモート分岐が上流のHEADを使用して見つからない

git clone -b v0.8.2 https://github.com/chaoslawful/lua-nginx-module.git 

git cloneコールを経由してタグをチェックアウト

warning: Remote branch v0.8.2 not found in upstream origin, using HEAD instead 

答えて

5

は、バージョン1.7.10以前のgitでサポートされていません。代わりに、次のコマンドを実行する必要があります。

git clone https://github.com/chaoslawful/lua-nginx-module.git 
cd lua-nginx-module 
git checkout v0.8.2 
cd .. 
+0

Ubuntu 12.04でgitを更新するには、https://gist.github.com/dergachev/5918390を参照してください。 – m14t

関連する問題