1. 安裝jdk-8u172-windows-x64.exe,使用缺省設置安裝
兩個JRE:
C:\Program Files\Java\jdk1.8.0_172\jre : 專用JRE,用於運行JDK中包含的工具,沒有註冊表設置。
C:\Program Files\Java\jre1.8.0_172 : 公共JRE,可由其餘Java應用程序使用,會註冊到註冊表(HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft)和瀏覽器。java
2. 配置Java環境變量
JAVA_HOME : C:\Program Files\Java\jdk1.8.0_172
CLASSPATH : .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;
Path : ;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;git
3. 在命令行中運行"javac",檢驗java環境是否OKwindows
4. 登錄https://www.scm-manager.org/download,下載scm-server-1.59-app.zip瀏覽器
5. 解壓到D:\scm-server-1.59-appapp
6. 以管理員身份運行: D:\scm-server-1.59-app\scm-server\bin\scm-server.bat工具
7. 在瀏覽器中打開http://localhost:8080/scm/,初始用戶名密碼scmadmin/scmadmin命令行
8. 新建目錄D:\scm-server-1.59-app\git,做爲Git倉庫server
9. 登錄http://localhost:8080/scm/,新建xxx用戶,並設置爲管理員,使用xxx登錄ip
10. 進入Config|Repository Types,設置「Git Settings」,「Repository Directory」設置爲「D:\scm-server-1.59-app\git」it
11. 進入Main|Repositories,點擊Add,新建MyProject的Git倉庫
12. 打開Git Extensions,Clone repository,http://xxx:pwd@localhost:8080/scm/git/MyProject,Clone到E:\WorkDir,Clone後打開
打完收工!