記錄一下git使用。
初次使用
- 設置Email和名字。
$ git config --global user.name "John Doe" $ git config --global user.email [email protected]
- 修改vim爲默認編輯器
$ git config --global core.editor vim
- d
項目開始
- remote add
# 添加遠程倉庫路徑 $ git remote add github [email protected]:yyfrankyy/search.git # 實際上,pull 就是 fetch + merge $ git pull github --all --tags
項目中途
命令
- git remote命令,看這裏。
- git config配置文件