git小計

記錄一下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

項目中途


命令

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章