Problem: solve the problem of ssh-add every time you boot up under MAC,
Each time you restart your computer and use the Git repository, you will be prompted to Enter passphrase for key, and then you will need to go back to.ssh.
Reason: The generated secret key is encrypted. The figure below is encrypted on the left, and unencrypted on the right.
The corresponding link for problem resolution
Solution: change the password to no password
After operation: try git success. Restart and try again also successful.
Mark, just for reference. Corrections are welcome