First step: Install Git for Windows
Msysgit is a Windows version of Git, downloaded from https://git-for-windows.github.io/, and then installed by default.
Download Link: https://github.com/git-for-windows/git/releases/latest
Then the various next steps are recommended using the default options.
When the installation is complete, find Git Bash in the Start menu, and you can open the command window to show that the GIT installation was successful!
Step two: Set up a git client
1. Start a Git Bash window first (non-Windows users open the terminal directly). Set up your username and email to tell someone who you are!
git config--global user.name "Your name" git config--global user.email "[Email protected]"
2. Production key pair: Note the operation in Git bash.
2.1. Implementation:
CD ~/.ssh
If you return "... No such file or directory ", stating that no SSH key has been generated, go directly to the 3rd step to produce a new key. Otherwise go to the 2nd step backup!
2.2. If you have already generated it, you need to make a backup:
mkdir key_backup MV id_isa* key_backup
2.3. Generate a new key: (Replace the contents of the quotation marks with your own mailbox)
Ssh-keygen-t rsa-c "[Email protected]"
Direct enter, do not modify the default road strength.
Enter passphrase (empty for no passphrase): Enter same passphrase again:
Set a passphrase and ask for the passphrase before each remote operation! Busy trouble can be directly enter, not set.
Step Three: Submit the public key on GitHub:
Locate the. SSH folder, open the "id_rsa.pub" file with a text editor, copy the contents to the Clipboard
Open Https://github.com/settings/ssh, click the Add SSH Key button, paste in to save.
Windows git client and GitHub settings