Copy the private key (we generated in step 1-k) from server to client.If we run Git Bash again, ssh enter your password and run the git command, git should be found this time:.Restart the CopSSH by clicking twice the big button in CopSSH Control Panel:.Now we try to use the activated user to log on through SSH, open Git Bash, enter commands:Įxport PATH="/bin:$syspath:$winpath:/cygdrive/c/git/bin:/cygdrive/c/ The private key will be saved to c:\ICW\home\jinweijie\ryan-vm-01_2048.ppk.After the user is activated, click the Keys… button in the Activated Users section:.Here in my sample, the user is jinweijie. Choose an existing user on your computer (you can create one in computer management).After installation, open COPSSH Control Panel.Just use the default account as CopSSH provides:.Just like the msysgit, we don’t install the CopSSH in program files folder to avoid some space issues. Add C:\Git\bin and C:\Git\libexec\git-core to Path.You can try it with git command, if you get the following screen, you’ve installed the msysgit successfully. After installation, you get the git bash icons on your desktop. In the “Adjusting your PATH environment”, I recommend to select “Use Git Bash only”.When you installing the msysgit, please choose c:\Git as the installation directory, because the space in the directory name may cause an issue in bash commands.GitExtensions (install both on the server side and client side).Software required to integrate with Visual Studio: PuTTY (install both on the server side and client side).msysgit (install both on the server side and client side).Software Requirement Software required to setup a Git server: Note: CopSSH is not open source any more, please buy it if you want to use it. In fact, it just takes about 10 minutes to setup all. The post is long because it’s step by step and with lots of screenshots. In this post, the “Git server” means to make your computer available for others to pull/push code from/to. That means you can get code from other computer, you’re the client while others can also get code from your computer, you’re the server. Your workstation can be both the client and server. First of all, let me clarify that Git doesn’t need to specify the side for client and server.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |