AP102 2016/5/17 GIt
不要使用SourceTree這類的GUI 設置
網路寫程式
https://c9.io/
善用GitHub
https://github.com/
基本指令
顯示目前位置Present Working Directorypwd 看看裡面有什麼東西list
ls 切換目錄 change Directory
cd EX:
cd desktop //切換到desktop資料夾 EX:
cd .. //回到上一層 EX:
cd ../../ //回到上一層再上一層清除畫面 clear
clear git 目前狀態
git status git 查詢
git log Git 觀念
第一個房間-Working Directory
第二個房間-Local Repository
git init 代表資料夾受git管理
git add helloworld.txt 後就會在Station Area了
第三個房間-Station Area
git commit 第四個房間-server
實作階段1
新增一個資料夾gitpractice
然後按下cd 將資料夾拖曳會直接顯示路徑
打開文字編輯器
製作一個純文字格式
git init git add helloworld.txt git commit 按下
i 進入插入模式可以打字
輸入這次的
版本訊息 按下
Esc 輸入
:wq! // : w( 寫入) q (離開) ! (強制) 實作階段2
增加一個txt檔案叫做Bingo.txt修改helloworld
git add helloworld.txt 然後helloworld.txt就會在station area上
git add Bingo.txt
Comments
Post a Comment