Skip to content

Commit

Permalink
update content
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcxa committed Jul 5, 2017
1 parent 56d5b1c commit fd7f501
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# HelloJS - git 101

![](./img/hellojs.png)
![](./img/git-101.png)

## 內容簡介
Expand Down
2 changes: 2 additions & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
- [git 指令對照表](./cheat-sheet.md)
- [基本資料範本](./sample/index.md)

***

## 課程目的
- 能夠使用 git 而不手忙腳亂
- 能夠在本機端使用 CLI 介面操作 git
Expand Down
26 changes: 23 additions & 3 deletions git-github/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# git 與 Github

## 目錄
- [回目錄](./SUMMARY.md)
- [回目錄](../)

***

Expand All @@ -16,18 +16,38 @@
- SourceTree for Mac/Windows(建議使用)
- git 官方網站:[https://git-scm.com/](https://git-scm.com/)

### 為什麼要使用版控

![](../img/git-github-5.png)

- 對一個資料夾下的所有檔案做備份管理
- 將檔案的Snapshot(快照)保存到歷史紀錄
- 為每次檔案更動留下說明
- 將檔案復原到某個歷史紀錄
- 顯示不同記錄版本的檔案差異
- 與他人協同合作
- ~~找戰犯~~

### 版本控制系統差異

版本控制系統(Version Control System)簡稱VCS;具體有兩種實現模式:集中式與分散式。

兩者最大的差異在於是否在本地端(local 端)具有儲存庫。
兩者最大的差異在於:是否在本地端(local 端)具有儲存庫。

![](../img/centralized-vs-distributed.jpg)

```
取自 https://www.git-tower.com/blog/switching-from-subversion-to-git/
```

### 工作流程

![](../img/basic-remote-workflow.png)

```
取自 https://www.git-tower.com/learn/git/ebook/en/command-line/remote-repositories/introduction
```

***

## Github
Expand Down Expand Up @@ -64,5 +84,5 @@
![](../img/git-github-4.png)

## 下一頁
- [回目錄](./SUMMARY.md)
- [回目錄](../)
- [儲存庫(git repository)](../git-repository/index.md)
10 changes: 10 additions & 0 deletions git-repository/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 儲存庫(git repository)

## 目錄
- [回目錄](../)

***

## 下一頁
- [回目錄](../)
- [git init](./git-init/index.md)
Binary file added img/basic-remote-workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/git-github-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/hellojs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fd7f501

Please sign in to comment.