[web] https://blog.techbridge.cc/2018/01/17/learning-programming-and-coding-with-python-git-and-github-tutorial/
[web-git+gitlab簡易版說明] https://windsuzu.github.io/learn-git/
[web-git instruction猴子教學] https://backlog.com/git-tutorial/tw/stepup/stepup2_4.html
遠端project放置Gitlab (可以支援私人無須付費)
基本指令:
git clone
git status
git add
git commit -m "備註"
git branch #觀看目前的branch 狀態 *代表正在上面
git branch ___ #跳到某條branch
git checkout (-b) branch name #可以直接build
git checkout branch_name #切換到任一條branch
git fetch #取得該條branch遠端code庫
git push origin "branch name" #將目前資料更新到遠端branch
git push origin --delete "branch name" #將遠端branch刪除
git merge origin/"branch name" #合併遠端branch和master
git diff "file name" #可以看檔案修改的部份
Comments