// 安裝
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt-get update
sudo apt-get install git
git --version


// 登入 用戶名稱 與 信箱
git config --global user.name "Lolikitty"
git config --global user.email "my@loli.com"


// 初始化專案:到需要版本控制 ( or 同步) 的資料夾內,輸入:
git init
// 克隆專案 (複製到本機資料夾)
git clone https://github.com/Lolikitty/Example.git

// 自動加入全部檔案,與下面的 git add -i 可以自己挑喜歡的一個輸入
git add .
// 加入檔案增強版
git add -i

//  儲存 (儲存在本地,就跟打遊戲有紀錄點一樣)
git commit

// 上傳到 Github
git push





arrow
arrow
    全站熱搜

    黃彥霖 發表在 痞客邦 留言(0) 人氣()