设置账户
git config --global user.name "Firstname Lastname"
git config --global user.email "your_email@example.com"
上传项目
- git init
- git add .
- git commit -m "first commit"
- git remote add origin https://github.com/CocoYuki/XXXX.git
- git push -u origin master
更新代码
git add *
git commit -m "fix"
git push
克隆项目
git clone https://github.com/CocoYuki/XXXX.git