GitHub

SSH
ssh-keygen
$ ssh-keygen -t ed25519 -P "" -f .ssh/github_ed25519
~/.ssh/config
Host github github.com
HostName github.com
IdentityFile ~/.ssh/github_ed25519
User git
Macpbcopy
$ pbcopy < ~/.ssh/github_ed25519.pub
dragoon8192$ssh-copy-id使
$ clip.exe < ~/.ssh/github_ed25519.pub
GitHubSetting
clone
git clone git@github.com:dragoon8192/files.git

push
git remote add origin git@github.com:dragoon8192/files.git
git push -u origin master

$ git push -u
$ git push --set-upstream
$ git branch -M main
master