2013-05-09 68 views
1

我有一個密碼!在它,當我試圖從克隆混帳存儲庫使用的語法如下:從github克隆密碼時!在它

git clone https://username:[email protected]/org/repository.git 

我收到此錯誤:

bash: [email protected]/org/repository.git: event not found 

如何解決它在不改變密碼?

我在Linux中。我已經在Windows中使用這個沒有任何問題。

回答

6

只是反斜槓的感嘆號。它在bash(歷史擴展)中有特殊的含義。

git clone https://username:password\[email protected]/org/repository.git 

你也可以把它包裝成引號('):

git clone 'https://username:[email protected]/org/repository.git'