Github操作指令

2019-03-18  本文已影响0人  在一颗大大大榕树下

设置账户

git config --global user.name "Firstname Lastname"
git config --global user.email "your_email@example.com"

上传项目

  1. git init
  2. git add .
  3. git commit -m "first commit"
  4. git remote add origin https://github.com/CocoYuki/XXXX.git
  5. git push -u origin master

更新代码
git add *
git commit -m "fix"
git push

克隆项目
git clone https://github.com/CocoYuki/XXXX.git

上一篇 下一篇

猜你喜欢

热点阅读