跳到主要內容

發表文章

目前顯示的是有「GIT」標籤的文章

From Gitlab to Gogs

經過幾年使用 Git ,終於等到 微軟也使用 Git ,有理由要求同事也來用 Git 。 前兩年架了 Gitlab ,但是效能實在太差,幾度Survey後決定改用 Gogs 。  

Git for Windows中文檔名不再亂碼

昨天看到 Getting Started with Git in Visual Studio and Team Foundation Service ,也就是說微軟官方將正式支援Git做為Source Control Provider。目前需要安裝 Visual Studio 2012 Update 2 CTP 2 和 Visual Studio Tools for Git 。所以我也趁機丟掉Subversion,全面投到Git的懷抱。

簡單設定GIT http server (for Windows and Unix),Git Http Server for Dummies

在Windows上設定 原本在Windows上因為中文檔名一直有問題,不敢使用 Git ,看到 Git Source Control Provider 再試中文檔名仍然不行;後來 雨蒼 告知有對岸的高手 tinyfish對msysgit做patch ,並放在Googlecode上 utf8-git-on-windows ,事情才有轉機。 原本也有考慮 Mercurial ,Windows上中文檔名雖然也有問題但是有方法修復,未採用的原因是Windows平台沒有Visual Studio provider。而且 Xcode 己經內建 Git 整合,為了自己方便當然採用 Git 才是明智之舉。(個人覺得Google Code採用水銀有點是基於對Python的偏執, 難保爾後不會有 Git 支援XD 。Update: 2011/07 Google Code支援Git了! )。關於Google的看法,詳見 Analysis of Git and Mercurial 。 首先當然是要安裝 patch過的git和TortoiseGit ,接著下載Apache for Windows,我是下載 httpd-2.2.19-win32-x86-openssl-0.9.8r.msi 安裝。 使用網路上最常見的 這篇 教學仍然失敗,加上 REMOTE_USER 設定還是不行,只要是用到git-http-backend.exe的檔案都出現403 Forbidden,例如HEAD、info\refs等,檔案權限已經設成everyone full access仍然有問題;後來回頭用舊方法WebDAV才搞定。 除了原本需要的alias_module、auth_basic_module、authn_file_module,還要啟用dav_module、dav_fs_module、dav_lock_module。我是沿用原來的http.conf,另外加上 extra/git.conf,在原來的http.conf最後加上 Include conf/extra/git.conf 如果要Include conf/extra/httpd-dav.conf的方式啟用WebDAV要注意httpd-dav.conf裏的DavLockDB必須要寫入權限的檔案,所以預設的目錄通常不是不存...