Git—>Git Bash
-
配置用戶名
$ git config --global user.name “liusihuijiayou” -
配置郵箱
git config --global user.email “[email protected]” -
進入上一級 cd…
-
查看當前目錄 pwd
-
退出 ls
-
git命令中添加一個文件,例如:test.txt
我們常規使用的命令爲“git add test.txt”,有時候可能就會出現:fatal: pathspec ‘test.txt’ did not match any files
解決辦法:我們換一種命令方式:使用命令“ touch test.txt”能創建成功,這樣創建成功。