HTTP-based git server setup in Windows-gitstack

Source: Internet
Author: User

Copyright notice: If no source note, techie bright blog article are original. Reprint please indicate the title and address of this article in the form of link:
This article title: Building-gitstack HTTP-based git server under Windows Address: http://techieliang.com/2017/12/514/ Article Directory
    • 1. Download and install
    • 2. Note
    • 2.1. About the Python conflict issue
    • 2.2. Gitstack Password Reset
    • 3. conflict between Gitstack and Wamp
1. Download and install

Download the website

The installation process is also very simple and convenient. Installation steps

After the installation is complete, the management address: Http://localhost/gitstack Login background to operate

Basic operating Instructions

The client can operate directly using tortoisegit.

2. Note 2.1. About the Python conflict issue

Gitstack uses the HTTP service built with Python (which does not need to be installed separately), Python is version 2.7 and creates a new system environment variable when the installation is complete:

Pythonhome:c:\gitstack\python
Pythonpath:c:\gitstack\python\lib

Note that this environment variable is directly pinned to the Python root directory and path, not simply to add a path in the path variable, which will ensure that other versions of the Python environment Gitstack can also run stably to find their own Python path.

However, these two environment variables are generic and valid for any version of Python, so regardless of any other version of Python, including Anaconda will access files under this path when it is started, and will be error-free if the version is different.

Solution: Currently not found co-gitstack and other versions of the Python scenario, a temporary workaround is to remove the two variables can be normal use of other versions of Python, add the need to restart the Gitstack service to use Gitstack, no coexistence method found.

2.2. Gitstack Password Reset

Password can be reset after forgotten password

CD C:\GitStack\app? (Gitstack directory varies by installation)
Python manage.py Shell

where manage.py

    1. from django.< Span class= "ME0" >contrib . . Models import user
    2. u = user . Objects . Get ( username__exact= ' admin '
    3. u.set_password< Span class= "Br0" > ( ' password '
    4. u.save (
    5. quit (
3. gitstack and Wamp conflict

Open Task Management-services

Find the service "Gitstack", "Wampmysqld", "Wampapache", as needed to switch.

The corresponding service name for Wamp is preceded by Wamp instead of the original name

HTTP-based git server setup in Windows-gitstack

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.