Git

Git—>Git Bash

  1. 配置用戶名
    $ git config --global user.name “liusihuijiayou”

  2. 配置郵箱
    git config --global user.email “[email protected]

  3. 進入上一級 cd…

  4. 查看當前目錄 pwd

  5. 退出 ls

  6. git命令中添加一個文件,例如:test.txt
    我們常規使用的命令爲“git add test.txt”,有時候可能就會出現:fatal: pathspec ‘test.txt’ did not match any files
    解決辦法:我們換一種命令方式:使用命令“ touch test.txt”能創建成功,這樣創建成功。

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