Git第一次提交代码的操做

  • 先在github上建立仓库。
  • 复制仓库:
git clone https://github.com/quantum6/AndroidCameraFps.git
  • 设置用户名密码:
git config --global user.name "你的名字或昵称"
git config --global user.email "你的邮箱"
  • 进入代码目录,添加全部代码
git add *
  • 提交:
git commit -m "my first commit"
git push origin master
相关文章
相关标签/搜索