1,在github上注册自己的账号,并且创建master
将本地代码提交github上

2.下载git,并且打开gitbash 输入 git clone https://github.com/hert1/blog.git 后面链接为你刚刚在github上创建的master的git

3.当clone完成后,会在你当前路径下面出现你clone下来的目录

4,cd 进入这个目录

5,将你所需要上传的东西copy进入这个目录

6,执行 git add . 注意add后面有个点

7.执行git commit -m “提交信息”

8.执行git push -u origin master(执行过程中,要输入你的账号,密码)

没有什么大问题,就上传成功了!

在补充一句,如果在git里面没有设置账号信息的话需要

git config --global user.name “your name”
git config --global user.email "[email protected]
就可已了!

相关文章:

  • 2022-12-23
  • 2021-10-20
  • 2021-11-26
  • 2021-09-18
  • 2021-08-29
  • 2021-10-15
  • 2021-11-09
  • 2022-01-08
猜你喜欢
  • 2022-12-23
  • 2021-11-06
  • 2021-08-19
  • 2021-08-19
  • 2021-08-08
  • 2022-12-23
相关资源
相似解决方案