In order to use with Redmine, Git is specifically used to do version control.
Git Candy© is a git distributed version control platform based on ASP. Git Candy's goal is to easily kill Bonobo, catch up with GitHub, and surpass GitHub with micro-innovation.
SOURCE in: Http://github.com/Aimeast/GitCandy
Demo in: Http://git.53wb.com https://gitcandy.com/Repository
Bonobo to Gitcandy Database conversion program: http://git.53wb.com/Repository/Tree/Bonobo2Candy/
Choose a git server deployment policy
Find a lap and find the following ways to set up a git server:
- git candy:http://github.com/aimeast/gitcandy/ ae great god's work, Git Candy© is a git distributed version control platform based on ASP. Git Candy's goal is to easily kill Bonobo, gradually chasing GitHub, and using micro-innovation over GitHub
- Bonobo Git server:http://www.chodounsky.net/bonobo-git-server/ requires iis6+/.net 4/asp.net MVC 3, and the official provides more detailed installation instructions, But it's said to be a lot.
- webgit.net:https://github.com/otac0n/webgitnet/wiki/getting-started need iis/asp.net MVC 3/msysgit, long time no update
- Git-web-access:https://github.com/yysun/git-web-access Another MVC development, but also for a long time no update
- git-dot-aspx:https://github.com/jeremyskinner/git-dot-aspx need iis7+/.net 4/asp.net MVC 2, also long time no update
- Grack:https://github.com/schacon/grack need ROR environment, also long time no update
- gitstack:http://gitstack.com/ to the system requirements are relatively high, 2003/XP can not support the
- Scm-manager:https://bitbucket.org/sdorra/scm-manager need Java environment, update more frequently, installation configuration is relatively simple
- gitblit:http://gitblit.com/ also requires a Java environment, the installation configuration is relatively simple
- gitalist:http://www.gitalist.com/ requires a Perl environment, and the installation configuration is simple
- indefero:http://www.indefero.net/open-source/ need Php/mysql/apache Wait, long time not updated
- Git daemon is the daemon: through the git daemon--reuseaddr--base-path=/path/to/git/boot, access through the GIT://protocol, using 9418 port for communication, need to cooperate with gitosis to be useful
- Gitolite:https://github.com/sitaramc/gitolite requires cygwin/ssh and a bunch of settings
- Http://therightstuff.de/CommentView,guid,b969ea4d-8d2c-42af-9806-de3631f4df68.aspx
- Http://beta.wikiversity.org/wiki/Topic:Git/%E5%9C%A8Windows%E4%B8%8B%E5%AE%89%E8%A3%85Gitolite
- Gitosis:https://github.com/tv42/gitosis requires cygwin/ssh and a bunch of settings
- Http://markembling.info/2009/08/git-server-gitosis-and-cygwin-on-windows
- http://jerabi.com/sdionne/blog/2010/09/06/git-repository-server-gitosis-on-win7-working/
- gitlab:http://gitlabhq.com/ need Ruby/gitolite/nginx, wait a bunch .
- Copssh+msysgit+putty and other tools, the configuration is very cumbersome
- Http://code.google.com/p/tortoisegit/wiki/HOWTO_CentralServerWindowsXP
- http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/
- Http://www.codeproject.com/Articles/296398/Step-by-Step-Setup-Git-Server-on-Windows-with-CopS
- This is the easiest thing to do with github.com, or a similar hosting service.
- Windows file sharing, but not for permission control, very not recommended
- Git remote add Origin file:///ipaddress/sharename/
- git clone file:///ipaddress/sharename/
By comparing applications that require copssh/cygwin and other environments to be more complex, the remaining few Web applications that support the GIT Smart HTTP protocol are relatively simple to configure:
- Bonobo Git Server
- Webgit.net
- Git-web-access
- Scm-manager
- Gitblit
- Gitalist
Finally, based on the update/stability and other factors to filter out the Bonobo Git Server, Scm-manager, Gitblit, the results finally chose Scm-manager.
Configure Scm-manager
Install the Java environment on the machine, select the offline version to download the installation from http://java.com/zh_CN/download/manual.jsp
Download the latest scm-server-1.24-app.zip from Https://bitbucket.org/sdorra/scm-manager/wiki/download
Install as System service:
Then the system service is set to start automatically, and then start the service can be accessed through http://localhost:8080, the default user name and password are scmadmin.
Log in to the system and modify the GIT Center inventory path later through repository types.
Modify the default administrator user name or some other configuration can be found in the%userprofile%\.scm\config directory of the corresponding XML configuration file to modify, note to restart the Scm-server service.
Update: A low-version operating system such as Server 2003 may be in a directory C:\Documents and Settings\Default USER\.SCM, not the current user folder
If you want to enable mail and reminders, you'll also need to install plugins scm-mail-plugin, Scm-notify-plugin, and then fill in the settings with the SMTP settings associated with mail.
If the code submission is to be associated with Redmine, you will also need to install the plug-in Scm-redmine-plugin and then configure the Redmine address as http://localhost:3000 in the Redmine tab of the project information;
If you want to enable updates, auto-shutdown, you will also need Scm-manager and redmine to use the same username password, and the rest API must be enabled in the Redmine settings;
Then you need to use git commit–m "fix content" (#问题ID) to close the issue when you submit it, and you can configure it with keywords such as fix,fixed.
Client Installation
Regardless of whether you end up using that kind of client (Git extensions:http://code.google.com/p/gitextensions/or tortoisegit:http://code.google.com/p/ tortoisegit/), Msysgit must be installed: Download the latest Git-1.8.0-preview20121022.exe installation from http://msysgit.github.com/.
It is sufficient to use the command line only to install Msysgit, if you want to use the graphical interface to choose Msysgit's own Git GUI, or an additional git extensions or tortoisegit; personal feeling git Extensions's graphical interface is quite powerful, if you install it, be sure to install the KDIFF3.
Even more convenient is the integration with Visual Studio, where you can choose to install the Visual Studio plug-in integration when you install Git extensions, plus a tool to further enhance the convenience of git Source Control provider:http://gitscc.codeplex.com/, which relies on msysgit and git extensions, can be downloaded or installed on the official web site or in the Visual Studio Extension management search for git.
Git configuration
After the GIT client is installed, it is a good idea to configure a global user name and mailbox:
| 12 |
git config --global user.name "Your Name Here"git config --global user.email [email protected] |
This configuration may be used when creating a new repository, and you can view the configuration by following the command:
Git related info
- Pro Git Chinese: http://git-scm.com/book/zh http://progit.org/book/zh/ has a wall, use Google to find a free pdf version directly download
- Git Community Book Chinese version: http://gitbook.liuhui998.com/index.html
- Git magic:http://www-cs-students.stanford.edu/~blynn/gitmagic/intl/zh_cn/
- The way git manages to develop: http://blog.leezhong.com/translate/2010/10/30/a-successful-git-branch.html
- How to use github:http://www.yangzhiping.com/tech/github.html efficiently
- Graphic git:http://marklodato.github.com/visual-git-guide/index-zh-cn.html
- Notes version control-using git: http://www.nshen.net/sitelog/2011/08/03/git-note.html
- Git story: http://gitstory.wordpress.com/category/git/ git Web access author (note the wall)
You can also walk through git immersion step-by-step Walkthrough: http://gitimmersion.com/lab_01.html
Configure Git server and client hyper-complete under windows