SourceTree????????????????????
Asked by miyazoe:

?????????

?????????????SSH????????????????????????  
HTTPS?????????????????????????  
??????/???URL?????????????????????

??????????????????????  
?2????????????????

??????????  
?????????????????  
?????????  
?SSH??????  
??????????????  
?SourceTree????????????????

Windows??version 3.0.17?

???????????????????????


Answers:
author: miyazoe
body: ?????? ????

??????????????  
???????????????????????????????

(1) ??????????  
Auth type: OAuth  
Protocol: HTTP/SSH  
??????????????

(2) ???? Git ???  
?? Tools \> Options \> "Git" ?? Embedded Git ????  
????Embedded???????????????????????????

? ????  
?SourceTree???  
C:\\Users\\\<username\>\\AppData\\Local\\Atlassian\\SourceTree\\sourcetree.log  
???????????????

```
ERROR [2019-02-08 15:12:49,944] [22] [SourceTree.Exceptions.RemoteHostException] [Log] - ??????????
ERROR [2019-02-08 15:12:49,944] [4] [SourceTree.Exceptions.RemoteHostException] [Log] - ??????????
ERROR [2019-02-08 15:12:50,005] [1] [SourceTree.Exceptions.RemoteHostException] [Log] - Failed to list repositories for user [miyazoe]
ERROR [2019-02-08 15:12:50,092] [1] [SourceTree.Exceptions.RemoteHostException] [Log] - Failed to list teams for user [miyazoe]
ERROR [2019-02-08 15:12:50,093] [1] [SourceTree.Exceptions.RemoteHostException] [Log] - ???? ??????????????????????????
ERROR [2019-02-08 15:14:23,177] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - Could not determine repository from: 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git', output was:
ERROR [2019-02-08 15:14:23,178] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - ????: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git
??: 
???: Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Too many invalid password attempts. Log in at https://id.atlassian.com/ to restore access.
fatal: unable to access 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git/': The requested URL returned error: 403


ERROR [2019-02-08 15:14:37,800] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - Could not determine repository from: 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git', output was:
ERROR [2019-02-08 15:14:37,800] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - ????: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git
??: 
???: Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Too many invalid password attempts. Log in at https://id.atlassian.com/ to restore access.
fatal: unable to access 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git/': The requested URL returned error: 403


ERROR [2019-02-08 15:15:04,584] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - Could not determine repository from: 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git', output was:
ERROR [2019-02-08 15:15:04,585] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - ????: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git
??: 
???: Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Invalid username or password
fatal: Authentication failed for 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git/'


ERROR [2019-02-08 15:50:21,398] [1] [Sourcetree.Installer.Squirrel.Utils.UpdateHelper] [Log] - Couldn't read staging user ID
ERROR [2019-02-08 15:50:21,782] [1] [Sourcetree.Installer.Squirrel.Utils.UpdateHelper] [Log] - Couldn't read staging user ID
ERROR [2019-02-12 16:36:29,013] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - Could not determine repository from: 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git', output was:
ERROR [2019-02-12 16:36:29,279] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - ????: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git
??: 
???: Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Invalid username or password
fatal: Authentication failed for 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git/'


ERROR [2019-02-12 16:36:33,191] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - Could not determine repository from: 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git', output was:
ERROR [2019-02-12 16:36:33,192] [1] [SourceTree.ViewModel.CloneNewDialogViewModel] [Log] - ????: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git
??: 
???: Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Invalid username or password
fatal: Authentication failed for 'https://miyazoe@bitbucket.org/tvlabo/02_rakuten.git/'


ERROR [2019-02-15 15:32:17,503] [1] [Sourcetree.Installer.Squirrel.Utils.UpdateHelper] [Log] - Couldn't read staging user ID
ERROR [2019-02-15 15:32:17,936] [1] [Sourcetree.Installer.Squirrel.Utils.UpdateHelper] [Log] - Couldn't read staging user ID
ERROR [2019-02-15 17:54:40,438] [1] [Sourcetree.Installer.Squirrel.Utils.UpdateHelper] [Log] - Couldn't read staging user ID
ERROR [2019-02-15 17:54:40,446] [1] [Sourcetree.Installer.Squirrel.Utils.UpdateHelper] [Log] - Couldn't read staging user ID
```

????????????????????????????????????...???  
????????????????  
---------------------------------------  
git -c filter.lfs.smudge= -c filter.lfs.required=false -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks clone --branch master git@bitbucket.org:tvlabo/02_rakuten.git D:\\miyazoe\\repository\\02_rakuten  
Cloning into 'D:\\miyazoe\\repository\\02_rakuten'...  
FATAL ERROR: Server unexpectedly closed network connection  
fatal: early EOF  
fatal: the remote end hung up unexpectedly  
fatal: index-pack failed

???????????????????????????  
---------------------------------------

?SourceTree????CLI??????????????  
??????????????????????????????

???????????????????????

comments: author: K. Yamamoto
body: ???? HTTPS ??????????????????????????

```
remote: Invalid username or password
fatal: Authentication failed for 'https://*@bitbucket.org/*/*.git/'
```

?????????????????? SSH ???????????????????????????????

```
git -c filter.lfs.smudge= -c filter.lfs.required=false -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks clone --branch master git@bitbucket.*/*.git D:\*\repository\*
Cloning into 'D:\*\repository\*'...
```

??????????????????????

?????CLI???????????????????????????????????SSH??????????????????????????????????????????


author: K. Yamamoto
body: ??????????????????

???????????????????????????????????????????????????????????????????

**(1) ??????????**

* Auth type: OAuth
* Protocol: HTTP/SSH

![SourceTree Settings.png](https://tnckb94959.i.lithium.com/t5/image/serverpage/image-id/40242i314FDFA5B3D5FA0B/image-size/large?v=1.0&px=999 "SourceTree Settings.png")

**(2) ???? Git ???**

?? Tools \> Options \> "Git" ?? **Embedded Git** ????

**? ????**

??SSH??????????????????????????????????????????

* SourceTree???
  * [C:\\Users\\\<username\>\\AppData\\Local\\Atlassian\\SourceTree\\sourcetree.log](https://confluence.atlassian.com/sourcetreekb/sourcetree-logfile-location-675384748.html)
* ???????????????????????????????????...???
* SourceTree????CLI??????????????

**? ??**

???????????????:

* <https://community.atlassian.com/t5/Sourcetree-questions/Cloning-repository-error-This-is-not-a-valid-source-path-URL-Mac/qaq-p/373372>
* <https://community.atlassian.com/t5/Bitbucket-questions/quot-This-is-not-a-valid-source-path-URL-quot-when-connecting/qaq-p/165949>


Tags: clone

language-ja

login

windows