需要去 git上面修改一下當前的賬號、郵箱
git config --global user.name "你的名字"
git config --global user.email "你的郵箱"
cat ~/.gitconfig
1. 查看當前登錄賬號:
git config user.name
2. 查看當前登錄郵箱:
git config user.email
3. 修改用戶名和郵箱:
git config --global user.name "Your_username"
git config --global user.email "Your_email"
4.提交代碼
git add .--------------------存儲到本地
git commit -m 'message'-------存儲時的標記(修改了哪些地方)
git push------------------------上傳代碼至服務器
6.更新代碼
git pull------------------------下載服務器代碼)