設定全域的使用者資訊
git config --global user.name "username" git config --global user.email "username@yooo.com"
最後面代入要產生的目標,若目標不存在會建立一個新的資料夾
git init hello-git > Initialized empty Git repository in ~/hello-git/.git/
抓下個一個叫作 example 的專案,並且取名為 example
git clone "http://github.com/user/example.git" example
把目前有記錄到的檔案,加上一個新的 commit,內容是 "Init commit"
git commit --all -m "Init commit"
選擇 Pull 後,再選擇要 Pull 的 branch
可以選擇自動 merged,就會把 local 的部份和 remote 做 merge
git pull
選擇 Push, 再選擇要 push 的 repository(remote),下面可以選擇需要 push 的 branch
git push origin
原文:http://www.cnblogs.com/lisa090818/p/3545401.html