Finally the creation of success, in fact, this is the easiest way.
Thanks to the authors of these 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
is to refer to these two articles, and finally solve a problem to succeed.
1 Configure SCM Manager's operating environment
First, install the Java environment (note that your computer's configuration is 64bit or 32bit)
Download Address: http://java.com/zh_CN/download/manual.jsp
Second, download the latest version of Scm-manager installation (I downloaded the 1.45 version)
I think there may be a small white like me, do not know how to install Scm-server, so here a little detail here:
After extracting the file, find the Bin folder, which has a Scm-server.bat file, double-click, you can install, a little wait, installation success.
Ex) The installation process is as shown in the figure:
2) Setting up SCM Manager
After successful installation, enter the http://localhost:8080/scm/interface, the default username and password are scmadmin.
Enter the repository Types, we can change the storage location of the warehouse;
Entering repositories, we can create new or remove warehouses;
into the lower right corner of the permissions, we can change the permissions of the warehouse;
。。。。。 (interested can all point to see)
The server is now 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 is to query the IP address of the 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 client ready to store the path of the warehouse
II Git clone http://scmadmin@localhost:8080/scm/git/test
PS: In the actual operation, to change the localhost to the server's IP address, test replacement becomes the client folder name you want to set
III then push the local changes to the server based on the GIT statement
ex) GIT status//query local state
git Add. Adding changes to the cache
Git commit-m "20150310"//comment on change
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 did not change localhost to the server itself, but it was strange that I succeeded for the first time, so I didn't notice the problem.
Warning
I hope everyone can be set up smoothly, or quite interesting.