第一步:注册github账户(略).

第二步:安装Git

第三步:在github上新建与本地项目名一样的Repository.如下图:

利用Git命令上传本地项目到github

利用Git命令上传本地项目到github

第四步:鼠标右键点击本地项目,选 Git Bash Here

第五步:依次输入以下命令:

git init                                                      敲完回车

git add .                                                  敲完回车(注意 后面有一点,别丢了)

git commit -m "first commit"                   敲完回车

git remote add origin https://github.com/{你的github账户名}/{你的项目名}.git               敲完回车

git push -u origin master                        敲完回车

本地项目已上传到github,结束。

相关文章:

  • 2021-09-15
  • 2021-06-27
  • 2021-11-30
  • 2021-06-13
  • 2021-04-19
  • 2021-10-16
  • 2022-12-23
猜你喜欢
  • 2021-04-30
  • 2022-01-19
  • 2021-11-29
  • 2021-10-30
  • 2021-11-22
  • 2021-07-16
  • 2021-12-26
相关资源
相似解决方案