Deploying Gitosis with Windows Management

Source: Internet
Author: User

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
    1. sudo apt-get install SSH

2. Install git

[Plain]View Plaincopy
    1. sudo apt-get install Git-core

3. Installing Gitosis

(1) Installation Python-setuptools

[Plain]View Plaincopy
    1. sudo apt-get install Python-setuptools

(2) Installation gitosis

[Plain]View Plaincopy
    1. mkdir ~/gitosis_setup
    2. CD ~/Gitosis_setup
    3. git clone https://github.com/res0nat0r/gitosis.git
    4. CD gitosis
    5. sudo python setup.py install

4. Add Git users

[Plain]View Plaincopy
    1. sudo adduser \
    2. --system \
    3. --SHELL/BIN/SH \
    4. --gecos ' git version control ' \
    5. --group \
    6. --disabled-password \
    7. --home/home/git \
    8. 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
    1. SSH-KEYGEN-T RSA

(2) Upload native RSA public key

[Plain]View Plaincopy
    1. 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
    1. Sudo-h-u git gitosis-init

(2) Authorized file permissions

[Plain]View Plaincopy
    1. 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
    1. mkdir test1_proj
[Plain]View Plaincopy
    1. CD Test1_proj
[Plain]View Plaincopy
    1. 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
    1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.