一、进入文件,打开git bash here

 

二、git init 初始化

上传项目

 

三、git add 添加项目到仓库

上传项目

 

四、git commit 提交项目到仓库

上传项目

 

五、在github上创建git仓库

https://github.com/caishu1995/similarJQuery.git

 

六、git remote add origin 关联

上传项目

 

七、推送 

如果远程仓库是空的   git push -u origin master

如果远程仓库不是空的 git push origin master

【如果创建仓库的时候,勾选了Initialize this repository with a README,则推送的时候会报错

  上传项目

由于你新创建的那个仓库里面的README文件不在本地仓库目录中

git pull --rebase origin master】

相关文章:

  • 2021-04-24
  • 2021-04-04
  • 2022-01-11
  • 2021-12-02
  • 2021-09-29
  • 2021-04-26
猜你喜欢
  • 2021-09-28
  • 2021-06-24
  • 2021-10-22
  • 2021-06-27
  • 2021-05-25
  • 2021-05-09
  • 2021-04-05
相关资源
相似解决方案