2017-06-16 94 views
1

我有一個python腳本的GitHub庫,在這裏我有命令 -問題克隆與用戶名/密碼

REMOTE_URL = "https://" + USERNAME + ":" + PASSWORD + "@stashurl.com/stash/scm/repo.git"

我目前得到的錯誤 -

stderr: 'fatal: unable to access 'https://[email protected]:[email protected]/stash/scm/repo.git/': Port number ended with 'P'' 

我認爲錯誤的是在我的電子郵件地址中帶有@符號,但我不確定如何解決此問題。我調用了API令牌,但它看起來像Stash不具備該功能(並且我不能安裝插件來執行此操作)。

謝謝。

回答

2

Git正在將電子郵件地址中的@解釋爲憑證對的結尾。你應該建立以下命令了:

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

中的電子郵件地址與%40

更換 @