Presentation is loading. Please wait.

Presentation is loading. Please wait.

ASP.NET 應用程式開發與設計 : version control: Git/SVN 講 師: Taoyu Wu ( 吳燾佑 ) 日 期: 2015/3/20 1.

Similar presentations


Presentation on theme: "ASP.NET 應用程式開發與設計 : version control: Git/SVN 講 師: Taoyu Wu ( 吳燾佑 ) 日 期: 2015/3/20 1."— Presentation transcript:

1 ASP.NET 應用程式開發與設計 : version control: Git/SVN 講 師: Taoyu Wu ( 吳燾佑 ) 日 期: 2015/3/20 1

2 Agenda 2 What is version control What is Git/SVN How to use Git Exercise – A Hello World project

3 課程目標 What is version control What is Git/SVN How to use Git in visual studio Exercise ( A Hello World project on GitHub ) – commit to local – push to GitHub, pull from GitHub – TODO: revert, reset, rebase, merge, branch 3

4 What is version control 4

5 What is version control Let's think about that … What is version? – chrome 13, 14 ; iphone 6, 6+ What is version control / what we control? – in a project lifecycle, we control its all artifacts of revision – doc, source code, collect data … more Are that helpful for us? – it is easy to trace back the history 5

6 What is version control How about your version control 6

7 What is version control Normal 7

8 What is version control Keep working 8

9 What is version control Actual 9

10 What is version control Work Smart – Let's use tools well 10

11 What is Git/SVN 11

12 What is Git/SVN SVN ( Apache Subversion ) – master-slave revision control system 12 SVN Server (repository) Client 2 Client 1 Client 3

13 What is Git/SVN Git – distributed revision control system 13 Git Server (repository) local (repository) Client 2 local (repository) Client 1

14 What is Git/SVN SVN lifecycle 14 SVN Server (repository) Client 1. modify files 2. checkout 3. merge files 4. commit revision: 10 revision: 11

15 What is Git/SVN Git lifecycle 15 local repository Client 1. modify files 2. checkout 4. commit Repeat * n remote repository pull push revision: AB12 revision: EF98 3. merge files

16 What is Git/SVN Git cowork lifecycle 16 Client2's Local repos. Client 2 2. commit remote repository Client 1 Client1's Local repos. 1. modify files 3. push revision: AB12 1. pull revision: AB12 3. commit 2. modify files 4. push revision: BA21

17 How to use Git 17

18 How to use Git in visual studio Initial git account – Team Explorer → – Home → – 設定 → – Git 設定 → – 輸入 ( 名稱 / 電子郵件) 18

19 How to use Git in visual studio create project – 勾選 加入至原始檔控制 → – 勾選 Git → – 建立完的專案已經有 git 本機端的版本控制 19

20 How to use Git in visual studio create project – 勾選 加入至原始檔控制 → – 勾選 Git → – 建立完的專案已經有 Git 本機端的版本控制 20

21 How to use Git in visual studio first commit – project 右鍵 → – 原始檔控制 → – 認可 21

22 How to use Git in visual studio first commit – 系統跳出 Team Explorer – 輸入 commit log → – 確認要送交變更的檔案 → – 點選認可 22

23 How to use Git in visual studio first commit success – 要上傳檔案的為空 – 出現認可 SHA-1 碼 23

24 How to use Git in visual studio view log – project 右鍵 → – 原始檔控制 → – 檢視紀錄 24

25 Exercise - A Hello World project on GitHub 25

26 A Hello World project on GitHub GitHub – A global and popular git repository server Sign up for GitHub (by school ID)GitHub 26

27 A Hello World project on GitHub New repository 27 disable

28 A Hello World project on GitHub New repository success 28

29 A Hello World project on GitHub sync local project to remote – Team Explorer → – Home → – 未同步處理的認可 → – 發行至遠端儲存機制 → – 輸入建立成功的 git url → – 點選發行 29

30 A Hello World project on GitHub sync local project to remote success 30

31 A Hello World project on GitHub push to GitHub, pull from GitHub 31

32 A Hello World project on GitHub revert commit – 檢視紀錄 → – 右鍵點選某一版本的 commit → – 還原 → – 系統還原該版並自動 commit 一版 32

33 A Hello World project on GitHub share project to your member – GitHub project setting – Collaborators – Add member's name 33

34 參考書目 34

35 參考書目 ( 搭配使用 visual studio 與 Git) – https://msdn.microsoft.com/zh-TW/library/hh850437.aspx https://msdn.microsoft.com/zh-TW/library/hh850437.aspx ( git workflow – Git Data Transport Command ) – http://blog.osteele.com/posts/2008/05/my-git-workflow/ http://blog.osteele.com/posts/2008/05/my-git-workflow/ 35

36 Q&A www.gss.com.tw www.gsscloud.com


Download ppt "ASP.NET 應用程式開發與設計 : version control: Git/SVN 講 師: Taoyu Wu ( 吳燾佑 ) 日 期: 2015/3/20 1."

Similar presentations


Ads by Google