Git 101

Git 基本觀念介紹

安裝

基本操作

Repository and the Git Folder
Commits and Messages
Commit Details with Log and Show
Express Commits
Backing Out Changes
History and Making New Commands with Alias
Rename and Delete Files
Managing Files Outside of Git
Excluding Unwanted Files
* 撤銷修改文件

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)

Comparing Differences

Comparing with Pull Requests
Comparing Commits

Git Hook

Git Flow

GitLab Server

學習資源

錯誤訊息&解法

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   // 強迫到特定版本