Git version: v1.8.4
Windows: Windows Server 2008 R2

1. 安裝 Git for Windows
   

    我選[Git Bash]
    
    不考慮換行格式的問題,所以還是使用預設選項
   

2. HTTP 存取:
    把 c:\Program Files (x86)\Git 底下的檔案
    bin\libiconv-2.dll
    複製到 Git 安裝目錄下的 libexec\git-core\

3. 中文問題:
    執行command:  git config --global gui.encoding utf-8
   

 

目前用到的command:

取得 Git 指令列工具版本
git --version
初始化 Git 目錄 (local repository)
git init
目前 Git 工作目錄的狀態
git status
新增檔案
git add <filename.ext>
commit變更
git commit -m "<comments>"
更新檔案
git add -u
刪除檔案
git add –u <path\filename.ext>
git add -u
Undo Changes
git checkout -- .
git checkout -- <filename.ext>

arrow
arrow
    全站熱搜

    my007FFF 發表在 痞客邦 留言(0) 人氣()