不過因為之前沒有用過類似這樣的軟體
所以做點筆記好了
大致上是一邊看文件一邊看影片一邊亂試
下面還有很多可以看的
http://github.com/guides/git-podcasts
先install好git
然後去gthub上開個帳號
接著進入local terminal以設定git
$>git config --global user.name 'MYNAME'
$>git config --global user.email 'oo@xx.abc'
$>git config --global color.status auto
$>git config --global color.branch auto
$>git config --global core.editor 'mate -w'
然後設定好ssh的密碼,參考這裡:
http://github.com/guides/providing-your-ssh-key#macosx
去github上開一個repository
然後回到自己的terminal上面
並且進到project目錄下
建立空的git repository和remote
$>git init
$>git remote add remotename git@github.com:git_username/projectname.git
而如果要直接複製已存在的repository
$>git clone http://git.gitorious.org/username/projectname.git
project建立以後可以用
$>git ls-files
來檢視現在project所包含的檔案
接著可以把檔案加入index裡面
$>git add ooo.xx
然後用
$>git commit
$>git commit -m 'ooxx'
來完成目前已加入index的檔案的commit
期間都可以用
$>git status
檢視目前工作的狀況
$>git log
檢視log
git更新檔案的順序如下
沒有留言:
張貼留言