After installing git, you need to generate a key. When you enter ~/.ssh, it prompts cd: no such file or directory: /Users/libin/.ssh
At this time, use the key generation command directly, replace
ssh-keygen -t rsa -C "dd"
dd with your own mailbox or logo.
After you press Enter all the way, you can create successfully