Connect using a key pair
create key pair
ssh-keygen
Navigate to the folder where the keys are stored and you will see a private key with no extension and a public key with a .pub extension.
C:\Users\Administrator\.ssh
Log in to your github account
Enter from Settings in the upper right corner, and then click "SSH and GPG keys" in the menu bar to enter the page.
Click the New SSH key button to add an SSH key. Paste the SSH key (public key) code you copied into the input box corresponding to the key, and remember not to leave spaces or carriage returns before and after the SSH key code. In the input box corresponding to the above Title, you can also enter an alias of the SSH key displayed on github, or you can not enter it, and your email name will be used by default.
Clone a private repository
Then you can push normally.