Git 101
Git 基本觀念介紹
安裝
- Install on Linux
- CentOS: sudo yum install git
- 採用docker安裝GitLab
- client 端工具
基本操作

* git-環境建置
* 從無到有建立git專案目錄
* 從現有專案目錄啟動Git版本控制 (Starting with Existing Project)
* 從遠端抓取專案(Existing Git repository)
丟棄先有工作
// git add 前
git checkout -- <文件名>
// git add 後
git reset HEAD file
git checkout -- <文件名>
Commet 註解
更改 commit
git commit --amend -m "新提交消息"
push
進階 Advanced: Beyond the Basics
Comparing Differences
* 分支管理
Special Markers
Simple Branching Example
Conflict Resolution
Marking Special Events with Tagging
Saving Work in Progress with Stashing
Time Travel with Reset and Reflog
SSH Authentication
SSH vs HTTPS
* 透過SSH建立與Git Server的連線
Verify SSH Authentication with GitHub
標籤(Tags)及發行(Releases)
- Git log 應該要記錄的事項
- 如何使用標籤Tag
Starting a Release on GitHub
Deleting a Release
Creating a Completely New Release
Comparing Differences
Comparing with Pull Requests
Comparing Commits
Git Hook
Git Flow
GitLab Server
CI/CD
學習資源
錯誤訊息&解法
Updates were rejected because the remote contains work that you do not have......
// 重新把Server上異動抓下來merge(pull those changes)
git pull origin master
//現在就可以重新push更新(push your work to your repo)
git push origin master
git reset --hard v1.14.21-f // 強迫到特定版本