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
- from django.< Span class= "ME0" >contrib . . Models import user
- u = user . Objects . Get ( username__exact= ' admin '
- u.set_password< Span class= "Br0" > ( ' password '
- u.save (
- 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