0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Cannot clone a git repository using Sourcetree

Posted at

Issue

I copy the SSH URL for cloning it in my sourcetree, and paste the URL like this.

スクリーンショット 2023-11-15 230804.png

and as you can see, Repository Type give me "This is not a valid source path / URL"

The Content of Detail was like this

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push
-v --tags --set-upstream origin renewal:renewal Pushing to github.com:user name/
Git-practice.git 
The host key is not cached for this server: github.com (port 22) You have no guarantee 
that the server is the computer you think it is. The server's ssh-ed25519 key fingerprint
is: ssh-ed25658 256 SHA256:+HiY3wvvV7TuJJhbpZisF/zLDA0zPMSvHdkr7UvCOqU If you trust 
this host, enter "y" to add the key to

Solution

  1. Open command prompt
  2. Execute the following command
 > "C:\Users\username\AppData\Local\SourceTree\app-3.4.12(change the last part to yours)
\tools\putty\plink.exe" -ssh -C -i "C:\Users\nyun\sourcetree\private.ppk" 
git@github.com:~~(paste the SSH URL here)

Then, it ask like "If you trust this host, enter “y”...", so enter "y".

スクリーンショット 2023-11-15 234730.png

Yay! did it!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?