


Different servers have different requirements of how to publish your public key.

Next we want to put the public key to the remote server. ‘id_rsa’ is the private key, and ‘id_rsa.pub’ is the public key. Type this command on Git Bash:įor now, we can just press Enter to use default key name and empty passphrase. The server can authenticate the client if the client has the corresponding private key.įirst we need to generate key pair. The concept is we create a public/private key pair put the public key to the remote server, and keep the private key on your local machine. Now that we got Git running, it is time to set up SSH keys for Git, so that we don’t need to input password every time. Once it is installed, we can open the Git Bash and give it a try. Now we can just hit the Install button and finish the installation. On the “Configuring extra options” and “Configuring experimental options” page, leave as it or select on your need. Next page, we can just select the first option: “ Use MinTTY“. Again, I would recommend the third option: “ Checkout as-is, commit as-is“, as this is the safest option for our code. On the “Configuration the line ending conversions” page, you can select based on your need. Git Bash feels like a unix-like terminal and it is capable to do most of the work we need. On the “Adjusting your PATH environment” page, we want to select the first option: “ Use Git from Git Bash only“, unless you really want to use Windows Command Prompt. On the “Select Components” page, we can leave it as is, or you can change upon your own preference. Run the downloaded file and do the setup. Overviewįirst download Git for Windows on the official website: /downloads This article briefly reviews all the steps from Git installation to SSH set up. If this is the case, setting up Git on windows is a must. Developers are usually more used to Unix based system to set up all environments, but there are times we have to use Windows.
