第一步:注册Github账号

打开浏览器,在地址栏输入https://github.com。

第二步:新建一个仓库

选择 New repository

如何在Github上面传输代码如何在Github上面传输代码

第三步:将你需要上传的项目用 git bash打开

右键点击文件

选择Git Bash Here 选项

第四步:
在gitbash里面输入:git init

第五步:
在gitbash里面输入:git add .

第六步:
在gitbash里面输入:git commit -m "文件说明"   //文件说明,双引号中的内容是备注,注意:此处的文件说明不能省略

第七步:
在gitbash里面输入:git remote add origin  ***** //星号的内容是网址

第八步:
在gitbash里面输入:git push -u origin master

 

项目传输成功。

相关文章:

  • 2021-04-10
  • 2021-06-14
  • 2021-11-06
  • 2021-07-10
  • 2021-12-03
  • 2021-06-29
  • 2022-01-03
  • 2022-02-08
猜你喜欢
  • 2021-05-26
  • 2021-04-05
  • 2022-02-08
  • 2022-01-06
  • 2021-12-03
  • 2022-02-08
  • 2021-09-29
相关资源
相似解决方案