Git has a better performance in the version Control tool.
The Gitosis deployment on the web is done in the same system (Linux).
In this article, it is different from this approach.
--------------------------------------------------------------
Backup machine: gitosis server (Ubuntu 12.4)
Management machine: Gitosis client (Win XP)
--------------------------------------------------------------
First, install the gitosis server
1. Install SSH
[Plain]View Plaincopy
- sudo apt-get install SSH
2. Install git
[Plain]View Plaincopy
- sudo apt-get install Git-core
3. Installing Gitosis
(1) Installation Python-setuptools
[Plain]View Plaincopy
- sudo apt-get install Python-setuptools
(2) Installation gitosis
[Plain]View Plaincopy
- mkdir ~/gitosis_setup
- CD ~/Gitosis_setup
- git clone https://github.com/res0nat0r/gitosis.git
- CD gitosis
- sudo python setup.py install
4. Add Git users
[Plain]View Plaincopy
- sudo adduser \
- --system \
- --SHELL/BIN/SH \
- --gecos ' git version control ' \
- --group \
- --disabled-password \
- --home/home/git \
- Git
At this point, gitosis installation is complete.
-----------------------------------------------------------------------------------------------------------Beautiful split-line-------- ---------------------------------------
Then, set up the backup machine in Windows.
-------------------------------------------------------------------
Support Tools: Msysgit, Tortoisegit
(note) Installing TORTOISEGIT requires Windows Installer 4.5
-------------------------------------------------------------------
1. Request for authorization
(note) This is done in Git bash.
(1) Raw cost machine RSA public key
[Plain]View Plaincopy
- SSH-KEYGEN-T RSA
(2) Upload native RSA public key
[Plain]View Plaincopy
- SCP id_rsa.pub [Email protected]:/home/tdtc010
/*
TDTC010: Backup Machine System User
IP (192.168.1.100): The IP address of the backup machine
Directory (/HOME/TDTC010): Backup Machine directory
*/
2. Granting permissions
(note) This operation is performed in Putty.
(1) Initializing Git repository
[Plain]View Plaincopy
- Sudo-h-u git gitosis-init
(2) Authorized file permissions
[Plain]View Plaincopy
- sudo chmod 755/home/git/repositories/gitosis-admin.git/hooks/post-update
3.clone Management Library
(note) This is done in Git bash.
[Plain]View Plaincopy
- mkdir test1_proj
[Plain]View Plaincopy
- CD Test1_proj
[Plain]View Plaincopy
- git clone [email protected]:gitosis-admin.git
Complete the full text.
Reference article: http://blog.csdn.net/csfreebird/article/details/7204345
Attachment:
I.remote HOST Identification has changed!
This warning is likely to occur when we use the SCP.
This is due to a change in the IP address of the native (management machine).
Change the "192.168.1.100" in the Known_hosts file to the current IP address
[Plain]View Plaincopy
- 192.168.1.100 Ssh-rsa aaaab3nzac1yc2eaaaadaqabaaabaqdpeuystwi+w/ rom4tjtq4xu7imsuidzjucfbect2julnff0zr2vcd8vcrikmbwd0tos5fs5ex+ 6c8ygbdfra8q8zhtmvafyx2qrkqb1wtwkfpqmfzionuciv2psylxbo1gwmu0oolttzvlfdxqpiw4muqx9qczabsqcfhzym/a0ntjgn+ aeltv4ouvax17zeznzcia9sgn34blmwblkavm4zlv2cz7o1svyrjplcsb+d4bos1nm9lwvmw4gqsojq7uko8cx4t5tnkdj/vvhnsy+ Zpphqkicnwmcenuftugdtgfrfh8puidjh0ynasjreabrse2yhq9qwc4tb2dhrc1
Reference article: http://qdjalone.blog.51cto.com/1222376/616641
II. Pictures
Deploying gitosis with Windows Management