Finally, it is the simplest way to create success.
Thanks for the two articles
Http://blog.chinaunix.net/uid-20078486-id-3852530.html
Http://www.cnblogs.com/lwme/archive/2012/12/25/configuring-git-server-and-client-on-windows.html
It was the two articles that were referred to and the final solution to a problem was successful.
1) Configure the operating environment of SCM Manager
First, install the Java environment (note that your computer's configuration is 64bit or 32bit)
: http://java.com/zh_CN/download/manual.jsp
Second, download the latest version of Scm-manager installation (I downloaded version 1.45)
I think there may be a little white like me, do not know how to install Scm-server, so here is a little more elaborate:
Unzip the file, find the Bin folder, there is a Scm-server.bat file, double-click, you can install, a little wait, installation success.
Ex) as shown in the installation process:
2) Set up SCM Manager
After successful installation, enter the http://localhost:8080/scm/interface, the default user name and password are scmadmin.
Entering the repository Types, we can change the storage location of the warehouse;
Enter repositories, we can create new or remove warehouse;
into the lower right corner of the permissions, we can change the permissions of the warehouse;
。。。。。 (You can always take a look at it.)
At this point, the server is configured.
3) Client
The first step is to install the required software: 1, Git extensions http://code.google.com/p/gitextensions/or tortoisegit:http://code.google.com/p/ tortoisegit/
2, Msysgit http://msysgit.github.com/
The second step, the IP address of the query server (my error is this): Ex) 162.198.xx.xx
Step three, configure Git
i) in git, use the CD command statement to enter the path where the client prepares to store the repository
II) GIT clone/http[email protected]: 8080/scm/git/test
PS: In practice, to change localhost to the server's IP address, test replace the client folder name you want to set
III) You can then push the local changes to the server based on the GIT statement.
ex) GIT status//query local status
git Add. Adding changes to the cache
Git commit-m "20150310"//comment on changes
git config--global user.email "user email Address"//Set up users ' mailboxes
git config--global user.name "user name"//Set Username
Git push origin master//sync changes to Server
4) My mistake
My mistake was that when I set up git, I didn't replace localhost with the server's own IP, but it was strange that I had succeeded for the first time, so I didn't notice it.
Warning
I hope everyone can set it up smoothly, or it's quite interesting.
Using SCM Manager to create a git server