樂. 作
KernelTrap - Linux new
載入中…
2011年3月2日 星期三
Git 二三事
不常用,但是還是會用,所以一定會忘記...
1. 第一次用Git,初始化Git
~$ git init
2. 將所有的code加入Git database
~$ git add .
3. 由於Git預設Editor是Nano(應該),改成習慣的vim
~$ vi .git/config
加入下面這一句
editor = vim
4. commit
~$ git commit -a
可以在此時記錄這一版修改了什麼
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
沒有留言:
張貼留言