Git 學習一

Assist發表於2017-12-26

剛剛接觸git,學習現骨幹操作並記錄一下過程中的小問題(Windows下)

1、新建git目錄

 建立一個目錄,使用命令 git init 

 

2、新增檔案  git add a.txt

3、提交檔案  git commit - m “commit a.txt”

這時有時候會出現問題

這時使用提示的兩條命令

git config --global user.name "Name"

git config --global user.email "email"

需要注意的一點是  user.name和 user .email後便必須有空格 

 

相關文章