Git 的好處

最近在學習Git,發現Terminal上Git命令提示顯示中文,希望改成英文。

echo "alias git='LANG=en_GB git'" >> ~/.zshrc

如果你在 git commit 的時候出現錯誤,跳出了一個要你設定帳號跟姓名的畫面,請輸入以下指令

(記得把名字跟 email 換成你自己的)

  1. git config --global user.name "your name"
  2. git config --global user.email "youremail"

<aside> 💡 在 Mac “command + shift + . (dot)”可以顯示隱藏檔案/檔案夾。

</aside>

Git 的使用方式

  1. cd 到要版控的資料夾

  2. git init

  3. git add .

  4. git commit -m "hello"git commit -am "hello"