1、创建仓库

github使用-Windows

2、记下仓库地址,然后去下载git桌面版https://git-scm.com/downloads/ 此为官方下载地址

3、进入git终端(git-bash.exe)

4、进入要上传的文件夹的目录下

      例:cd d:\test

5、git init  //在当前目录下生成本地git管理

6、git add .   //项目上所有的文件添加到仓库中,若想添加某个特定的文件,只需把.换成此特定的文件名

7、git commit -m "注释"   //这次提交的注释,双引号里面为注释内容

8、git remote add origin https://自己的仓库url地址     //将本地的仓库关联到github

9、git push -u origin master   //把代码上传到github仓库

 

如果没有异常,会等待几秒,然后跳出一个让你输入Username和Password 的窗口,只要输入自己的账号和密码就OK了

成功显示

github使用-Windows

 

 

 

 

 

 

 

 

相关文章:

  • 2021-04-14
  • 2021-04-15
  • 2021-09-04
  • 2021-06-14
  • 2021-05-04
猜你喜欢
  • 2021-09-04
  • 2021-04-20
  • 2021-10-09
  • 2022-03-07
  • 2021-08-13
  • 2022-12-23
  • 2021-08-12
相关资源
相似解决方案