本地 Git 服务器设置(使用 bonobo)

Kam*_*med 2 asp.net git iis git-svn bonobo

我正在尝试设置 Bonobo Git 服务器以在中央服务器上使用 github。我已按照他们的文档中给出的说明进行操作按照他们的描述完成所有操作后,当我尝试访问 Bonobo 的 git 服务器网页时,出现以下错误。由于我是 Asp.Net 的新手,我无法完全理解问题所在。

在此处输入图片说明

任何人都可以指导我,导致此错误的原因是什么,我该如何解决?另外,如果您能告诉我任何其他更好的用于本地设置的 Git 服务器,您已经尝试过,我们将不胜感激。

Kam*_*med 5

我找到了解决方案

IIS - 此配置部分不能在此路径上使用(配置锁定?)

(选择的答案对我有帮助)。

但不幸的是,现在出现了一个新错误,

无法识别的属性“targetFramework”。请注意,属性名称区分大小写。

我搜索并找到了这个:

无法识别的属性“targetFramework”。请注意,属性名称区分大小写

肯尼克的回答

使用 IIS 注册框架对我有用:C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i

帮我解决了这个问题。瞧,我终于设置了我的本地 git 服务器:)

更新:

设置服务器后,我在连接到服务器时遇到问题。以下顺序对我有用:

  1. Created an empty Git repository at Bonobo Git Server (In my case: localhost://Bonobo.Git.Server.new/). The Username and Password were admin/admin.
  2. Created the users from the user's management control.
  3. Created an empty repository called newproject, added the users to the repository.
  4. At the client side, I used the following command to clone the repository:

git clone http://username@server/Bonobo.Git.Server.new/newproject.git e.g. in my case it was

git clone http://kamran@Bonobo.Git.Server.new/newproject.git

This cloned the repository at the client side with the warning that the repository was empty. But no problem. I moved into the repository, created some files for testing, pushed them to the server using git push. Now to test, if everything was working fine, I viewed the repository history and my commit was being shown there :) To be further assure, I tried on another client the same procedure i.e. cloned the repository, made some changes and pushed them to the server. After that on my first client, I came back and pulled the repository git pull and the changes were there :)

Note

The Server's firewall must be turned off inorder for the client to connect to the server.