在github上创建项目

如何将本地代码上传到github上
repository创建成功
如何将本地代码上传到github上

把本地代码提交到git

进入存放要提交代码的本地目录,右键“git bash here”
如何将本地代码上传到github上
git init
如何将本地代码上传到github上
设置用户
git config --global user.name “XXX”
git config --global user.email “XXX”
如何将本地代码上传到github上
git init
git add .
git commit -m “XXX”
git remote add origin 项目地址
git push -u origin master
如何将本地代码上传到github上
提交成功,在github上刷新一下,本地的文件已经上传到github上了
如何将本地代码上传到github上

相关文章:

  • 2021-05-01
  • 2021-09-16
  • 2021-10-13
  • 2021-10-11
  • 2021-11-09
  • 2021-05-25
猜你喜欢
  • 2021-07-09
  • 2022-01-07
  • 2022-01-07
  • 2021-11-12
  • 2021-07-13
相关资源
相似解决方案