Skip to content

Ssh clone works in Git bash but not in WSL2 git #22218

Discussion options

You must be logged in to vote

I used SSH in 20.04 LTS 18.04 LTS and 20.04.1 LTS. It all works in good way. I can’t understand.

One more thing whats this ./ thing.
I guess this command is enough for a clone using ssh.
git clone git@github.com:username/repo.git

bluesherpa:

git clone git @github.com:bluesherpa/array_sort.git ./

Now look here. You added a space between git and @github.com which is not required. and last ./ this is also not required.
Can you use this and confirm whats showing in the WSL with a screenshot

git clone git@github.com:bluesherpa/array_sort.git

Replies: 8 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@FrustrumCode
Comment options

@FrustrumCode
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants