﻿{"id":968,"date":"2012-10-23T17:42:46","date_gmt":"2012-10-23T09:42:46","guid":{"rendered":"http:\/\/nick.workao.org\/?p=968"},"modified":"2012-10-24T14:24:58","modified_gmt":"2012-10-24T06:24:58","slug":"%e7%94%a8%e5%bc%80%e6%ba%90-asp-net-mvc-%e7%a8%8b%e5%ba%8f-bonobo-git-server-%e6%90%ad%e5%bb%ba-git-%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/nick.txtcc.com\/index.php\/win\/968","title":{"rendered":"\u7528\u5f00\u6e90 ASP.NET MVC \u7a0b\u5e8f Bonobo Git Server \u642d\u5efa Git \u670d\u52a1\u5668"},"content":{"rendered":"<p>\u73b0\u5728\u4e0d\u7528Git\uff0c\u90fd\u4e0d\u597d\u610f\u601d\u8bf4\u81ea\u5df1\u662f\u7a0b\u5e8f\u5458\u3002<\/p>\n<p>\u5f53\u4f60\u60f3\u7528Git\uff0c\u800c\u6e90\u4ee3\u7801\u670d\u52a1\u5668\u662fWindows\u7cfb\u7edf\u65f6\uff0c\u4f60\u5c06\u9762\u4e34\u4e00\u4e2a\u95ee\u9898\uff1a\u5982\u4f55\u5728Windows\u4e0a\u642d\u5efaGit\u670d\u52a1\u5668\uff1f<\/p>\n<p>\u770b\u770b\u8fd9\u7bc7\u6587\u7ae0\uff08<a href=\"http:\/\/www.timdavis.com.au\/git\/setting-up-a-msysgit-server-with-copssh-on-windows\/\" target=\"_blank\">Setting up a Msysgit Server with copSSH on Windows<\/a>\uff09\u4e2d\u7684\u914d\u7f6e\u6b65\u9aa4\uff0c\u4f60\u4f1a\u5fd8\u800c\u5374\u6b65\u5417\uff1f\u4f60\u4f1a\u611f\u53f9\u201cLinux\u4e16\u754c\u7684\u7cbe\u5f69\uff0cWindows\u4e16\u754c\u7684\u65e0\u5948\u201d\uff1f<\/p>\n<p>\u4f46\u7a0b\u5e8f\u5458\u7684\u5929\u6027\u662f\u89e3\u51b3\u95ee\u9898\u5e76\u4ee5\u6b64\u4e3a\u4e50\u3002\u4e0d\u7ba1\u751f\u6d3b\u5728\u54ea\u4e2a\u4e16\u754c\uff0c\u89e3\u51b3\u95ee\u9898\u624d\u662f\u738b\u9053\u3002\u4e8e\u662f\uff0c\u6709\u7a0b\u5e8f\u5458\u89e3\u51b3\u4e86\u8fd9\u4e2a\u95ee\u9898\uff0c\u7528ASP.NET MVC\u5199\u4e86\u4e00\u4e2a\u5f00\u6e90\u7684Git\u670d\u52a1\u5668\u7a0b\u5e8f\u2014\u2014<a href=\"http:\/\/www.chodounsky.net\/bonobo-git-server\/\" target=\"_blank\">Bonobo Git Server<\/a>\u3002<\/p>\n<p>Bonobo Git Server\u57fa\u4e8e.NET Framework 4.0+ASP.NET MVC 3\u5f00\u53d1\uff0c\u6570\u636e\u5e93\u7528\u7684\u662fSQLite\uff0cGit\u90e8\u5206\u7528\u7684\u662f<a href=\"http:\/\/www.eqqon.com\/index.php\/GitSharp\" target=\"_blank\">GitSharp &#8211; Git for .NET and Mono<\/a>\u3002<\/p>\n<p>\u8fd0\u884cBonobo Git Server\uff0c\u53ea\u9700\u8981IIS+WebDAV\uff08IIS 7.5\u81ea\u5e26WebDAV, IIS 7.0\u9700\u8981\u4e0b\u8f7d\u5b89\u88c5\uff09\u3002<\/p>\n<p>\u4e0b\u9762\u7b80\u5355\u5206\u4eab\u4e00\u4e0b\u5b89\u88c5\u914d\u7f6e\u6b65\u9aa4\uff0c\u8be5\u6b65\u9aa4\u7ecf\u8fc7\u5b9e\u8df5\u68c0\u9a8c\uff0c\u6211\u4eec\u5df2\u7ecf\u6210\u529f\u90e8\u7f72\u3002<\/p>\n<p><strong>\u7b2c\u4e00\u90e8\u5206\u00a0Bonobo Git Server\u7ad9\u70b9\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e<\/strong><\/p>\n<ol>\n<li>\u4e0b\u8f7dBonobo Git Server\u5e76\u89e3\u538b<\/li>\n<\/ol>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/www.chodounsky.net\/bonobo-git-server\/\"><a href=\"http:\/\/www.chodounsky.net\/bonobo-git-server\/\">http:\/\/www.chodounsky.net\/bonobo-git-server\/<\/a><\/a><\/p>\n<p>\u5982\u679c\u60f3\u770b\u6e90\u4ee3\u7801\uff0c\u8bf7\u5728\u8fd9\u91cc\u4e0b\u8f7d\uff1a<a href=\"https:\/\/github.com\/jakubgarfield\/Bonobo-Git-Server\" target=\"_blank\"><a href=\"https:\/\/github.com\/jakubgarfield\/Bonobo-Git-Server\">https:\/\/github.com\/jakubgarfield\/Bonobo-Git-Server<\/a><\/a>\u3002<\/p>\n<ol start=\"2\">\n<li>\u914d\u7f6e\u4e00\u4e2aIIS\u7ad9\u70b9\uff08\u6bd4\u5982:git.cnblogs.com\uff09\uff0c\u6307\u5411Bonobo Git Server\u6240\u5728\u6587\u4ef6\u5939\u3002<\/li>\n<\/ol>\n<p>a) \u5e94\u7528\u7a0b\u5e8f\u6c60\u8981\u4ee5.NET Framework 4.0\u8fd0\u884c\u3002<\/p>\n<p>b) \u8981\u5b89\u88c5ASP.NET MVC3\u3002<\/p>\n<p>c) \u5982\u679c\u670d\u52a1\u5668\u7528\u7684\u662fX64\u7684Windows\uff0c\u9700\u8981\u4e0b\u8f7d64\u4f4d\u7248\u672c\u7684<a href=\"http:\/\/www.chodounsky.net\/wp-content\/uploads\/downloads\/2011\/04\/System.Data_.SQLite.x64.zip\" rel=\"nofollow\">System.Data.SQLite<\/a>\u81f3bin\u6587\u4ef6\u5939\u66ff\u636232\u4f4d\u7248\u672c\u7684\u3002<\/p>\n<ol start=\"3\">\n<li>\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u4e0a\u4e00\u6b65\u914d\u7f6e\u7684\u7ad9\u70b9\uff0c\u5982\u4e0b\u56fe\uff1a<\/li>\n<\/ol>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2012\/10\/0942481o9.jpg\" alt=\"\" \/>\n<ol start=\"4\">\n<li>\u8f93\u5165\u9ed8\u8ba4\u7528\u6237\u540dadmin\u4e0e\u5bc6\u7801admin\uff0c\u8fdb\u5165\u4e0b\u56fe\u9875\u9762\uff1a<\/li>\n<\/ol>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2012\/10\/094249JZ0.jpg\" alt=\"\" \/>\n<ol start=\"5\">\n<li>\u70b9\u51fb\u201cGlobal Settings\u201d\uff0c\u8bbe\u7f6e\u4e00\u4e0b\u4ee3\u7801\u5e93\u7684\u6839\u76ee\u5f55\uff0c\u5e76\u8bbe\u7f6e\u597d\u8be5\u76ee\u5f55\u7684\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\uff08\u9700\u8981\u6709\u5199\u6743\u9650\uff09\uff1a<\/li>\n<\/ol>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2012\/10\/094251oRF.jpg\" alt=\"\" \/>\n<ol start=\"6\">\n<li>\u70b9\u51fb\u201cRespositories\u201d \u300b\u201cCreate new repository\u201d\uff0c\u521b\u5efa\u65b0\u7684\u4ee3\u7801\u5e93\uff1a<\/li>\n<\/ol>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2012\/10\/094252FRf.jpg\" alt=\"\" \/>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2012\/10\/094253oeM.jpg\" alt=\"\" \/>\n<ol start=\"7\">\n<li>\u521b\u5efa\u597d\u4e4b\u540e\uff0c\u70b9\u51fb\u4ee3\u7801\u5e93\u7684\u540d\u79f0\uff0c\u5c31\u80fd\u67e5\u770b\u8be5\u4ee3\u7801\u5e93\u7684\u4fe1\u606f\uff0c\u6bd4\u5982\u6700\u91cd\u8981\u7684\u4fe1\u606f\u2014\u2014Git Repository Location\u3002<\/li>\n<\/ol>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2012\/10\/094255y7s.jpg\" alt=\"\" \/>\n<ol start=\"8\">\n<li>\u5b89\u88c5\/\u914d\u7f6eWebDAV<\/li>\n<\/ol>\n<p>\u5b89\u88c5<\/p>\n<p>1) \u5982\u679c\u662fIIS 7.5\uff08Windows 7, Windows Server 2008 R2\uff09\uff0cWebDAV\u662f\u81ea\u5e26\u7684\uff0c\u53ea\u8981\u6dfb\u52a0\u8be5\u7ec4\u4ef6\u5373\u53ef\u3002\u5177\u4f53\u914d\u7f6e\u65b9\u6cd5\u53c2\u89c1\u00a0<a href=\"http:\/\/learn.iis.net\/page.aspx\/350\/installing-and-configuring-webdav-on-iis-7\/#002\" target=\"_blank\">Installing WebDAV on IIS 7.5<\/a>\u3002<\/p>\n<p>2) \u5982\u679c\u662fIIS 7.0\uff0c\u9700\u8981\u53e6\u5916\u4e0b\u8f7d\u5b89\u88c5\uff0c\u8bf7\u53c2\u89c1\u00a0<a href=\"http:\/\/learn.iis.net\/page.aspx\/350\/installing-and-configuring-webdav-on-iis-7\/#001\" target=\"_blank\">Installing WebDAV on IIS 7.0<\/a>\u00a0\u3002<\/p>\n<p>\u914d\u7f6e<\/p>\n<p>\u6dfb\u52a0\u4e00\u6761Authoring Rule\uff1a<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2012\/10\/094256ISm.jpg\" alt=\"\" \/>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2012\/10\/094257tm2.jpg\" alt=\"\" \/>\n<p>\u5230\u6b64\uff0cGit \u670d\u52a1\u5668\u7ad9\u70b9\u7684\u57fa\u672c\u914d\u7f6e\u5c31\u5b8c\u6210\u4e86\u3002<\/p>\n<p><strong>\u7b2c\u4e8c\u90e8\u5206 Git\u5ba2\u6237\u7aef\u7b80\u8981\u64cd\u4f5c\u6b65\u9aa4<\/strong><\/p>\n<p>\u73b0\u5728\u53ef\u4ee5\u901a\u8fc7Git\u5ba2\u6237\u7aef\u63d0\u4ea4\u4ee3\u7801\u4e86\uff0c\u8fd9\u91cc\u7528\u7684\u662fTortoiseGit\u3002<\/p>\n<ol>\n<li>\n<p>\u5b89\u88c5TortoiseGit\uff0c\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/code.google.com\/p\/tortoisegit\/\"><a href=\"http:\/\/code.google.com\/p\/tortoisegit\/\">http:\/\/code.google.com\/p\/tortoisegit\/<\/a><\/a>\uff08\u9700\u8981\u5148\u5b89\u88c5<a href=\"http:\/\/code.google.com\/p\/msysgit\/\" target=\"_blank\">msysgit<\/a>\uff09\uff0cVS2010\u63d2\u4ef6\u53ef\u4ee5\u4f7f\u7528<a href=\"http:\/\/visualstudiogallery.msdn.microsoft.com\/63a7e40d-4d71-4fbb-a23b-d262124b8f4c\" target=\"_blank\">Git Source Control Provider<\/a>\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728\u5c06\u8981\u653e\u7f6e\u4ee3\u7801\u7684\u6587\u4ef6\u5939\u70b9\u51fb\u53f3\u952e\u9009\u62e9&#8221;Git Clone&#8221;\uff0c\u5728Url\u4e2d\u8f93\u5165\u4ee3\u7801\u5e93\u7684\u5730\u5740\uff0c\u786e\u5b9a\u540e\u8f93\u5165\u9ed8\u8ba4\u7528\u6237\u540d\u4e0e\u5bc6\u7801\uff0c\u7136\u540e\u5c31\u5f00\u59cbClone&#8230;\u51fa\u73b0\u5982\u4e0b\u753b\u9762\u8868\u793aClone\u6210\u529f\u3002<\/p>\n<\/li>\n<\/ol>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2012\/10\/094259qZC.jpg\" alt=\"\" \/>\n<ol start=\"3\">\n<li>\n<p>\u5411\u8fd9\u4e2a\u4ee3\u7801\u5e93\u6587\u4ef6\u5939\u6dfb\u52a0\u4ee3\u7801\u6587\u4ef6\uff0c\u7136\u540e\u901a\u8fc7TortoiseGit\u7684\u83dc\u5355[Git Commint -> &#8220;master&#8221;&#8230;\u201d]\u63d0\u4ea4\u4ee3\u7801\uff08\u8fd9\u4e2a\u63d0\u4ea4\u53ea\u662f\u5411\u672c\u5730\u7684\u4ee3\u7801\u5e93\u63d0\u4ea4\uff0c\u5e76\u6ca1\u6709\u63d0\u4ea4\u81f3\u670d\u52a1\u5668\uff0c\u8fd9\u4e5f\u662fGit\u4e0eSVN\u7684\u4e3b\u8981\u533a\u522b\u4e4b\u4e00\uff09\u3002<\/p>\n<\/li>\n<li>\n<p>\u901a\u8fc7TortoiseGit > Push \u63d0\u4ea4\u81f3Git\u670d\u52a1\u5668\u3002<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u7b2c\u4e09\u90e8\u5206 \u00a0Git\u670d\u52a1\u5668\u7684\u5176\u4ed6\u64cd\u4f5c<\/strong><\/p>\n<ul>\n    <li>\u4fee\u6539\u7ba1\u7406\u5458\u5bc6\u7801\uff0c\u901a\u8fc7\u5de6\u4fa7\u7684 &#8220;Users&#8221;\u94fe\u63a5\u8fdb\u5165\u7528\u6237\u7ba1\u7406\u754c\u9762\u8fdb\u884c\u4fee\u6539\u3002<\/li>\n    <li>\u6dfb\u52a0\u65b0\u7528\u6237\u5e76\u6388\u6743\uff0c\u7ba1\u7406\u5458\u65e0\u6cd5\u76f4\u521b\u5efa\u5e10\u6237\uff0c\u9700\u8981\u901a\u8fc7\u6ce8\u518c\u9875\u9762\u5148\u6ce8\u518c\u4e00\u4e2a\u5e10\u6237\uff08\u767b\u5f55\u9875\u9762\u53f3\u4e0a\u89d2\u6709\u6ce8\u518c\u94fe\u63a5\uff09\uff0c\u7136\u540e\u5728\u7528\u6237\u7ba1\u7406\u754c\u9762\u5c06\u8be5\u7528\u6237\u52a0\u5165Administrator\u89d2\u8272\u3002<\/li>\n    <li>\u5982\u679c\u9047\u5230\u95ee\u9898\uff0c\u53ef\u4ee5\u67e5\u770bApp_Data\u4e2d\u7684\u9519\u8bef\u65e5\u5fd7\u6587\u4ef6Bonobo.Git.Server.Errors.log\u3002<\/li>\n    <li>\u7531\u4e8e\u662f\u5f00\u6e90\u7a0b\u5e8f\uff0c\u6709\u4ec0\u4e48\u4e0d\u5408\u4f60\u610f\u7684\u5730\u65b9\uff0c\u76f4\u63a5\u53ef\u4ee5\u4fee\u6539\u6e90\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p><strong>\u90e8\u7f72\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u95ee\u9898:<\/strong><\/p>\n<p>clone\u7684\u65f6\u5019\u603b\u662f\u63d0\u793a\u6388\u6743\u5931\u8d25,\u628a\u4ee3\u7801\u4e0b\u56de\u6765\u6298\u817e\u4e86N\u4e45\u540e\u624d\u627e\u5230\u539f\u56e0,IIS\u7684\u6388\u6743\u7ba1\u7406\u8bbe\u7f6e,\u9664\u4e86Anonymous Authentication\u5141\u8bb8,\u5176\u5b83\u5168\u90e8\u5173\u95ed\u5373\u53ef,\u5b98\u65b9\u4e5f\u6ca1\u63d0\u5230\u8fd9\u4e2a\u95ee\u9898:(<\/p>\n<p><a href=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/2012\/10\/git_iis.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-980\" title=\"git_iis\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/2012\/10\/git_iis.png\" alt=\"\" width=\"502\" height=\"212\" srcset=\"https:\/\/nick.txtcc.com\/wp-content\/uploads\/2012\/10\/git_iis.png 502w, https:\/\/nick.txtcc.com\/wp-content\/uploads\/2012\/10\/git_iis-300x126.png 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u73b0\u5728\u4e0d\u7528Git\uff0c\u90fd\u4e0d\u597d\u610f\u601d\u8bf4\u81ea\u5df1\u662f\u7a0b\u5e8f\u5458\u3002 \u5f53\u4f60\u60f3\u7528Git\uff0c\u800c\u6e90\u4ee3\u7801\u670d\u52a1\u5668\u662fWindows\u7cfb\u7edf\u65f6\uff0c\u4f60\u5c06\u9762\u4e34\u4e00\u4e2a\u95ee\u9898\uff1a\u5982\u4f55\u5728Windows\u4e0a\u642d\u5efaGit\u670d\u52a1\u5668\uff1f \u770b\u770b\u8fd9\u7bc7\u6587\u7ae0\uff08Setting up a M&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,16],"tags":[],"class_list":["post-968","post","type-post","status-publish","format-standard","hentry","category-win","category-other"],"_links":{"self":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/968","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=968"}],"version-history":[{"count":3,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/968\/revisions"}],"predecessor-version":[{"id":979,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/968\/revisions\/979"}],"wp:attachment":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=968"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}