本地仓库和远程仓库搭建好之后,把内容上传到远程仓库:

$ git add text.txt                //把文件添加到本地git仓库   后面是文件名

$ git commit -m "test2"        //把文件提交到本地仓库 ,git commit -m后面相当于给本次提交加一个注释
$ git push -u origin master   //把内容推送到github(首次使用需要加 -u参数  其余时候不加)

使用github仓库
 

 

相关文章:

  • 2021-11-02
  • 2021-10-09
  • 2021-12-05
  • 2021-11-01
  • 2021-11-11
  • 2021-12-24
  • 2022-03-06
  • 2021-10-19
猜你喜欢
  • 2021-06-18
  • 2021-05-20
  • 2022-12-23
  • 2021-06-06
  • 2021-04-14
  • 2021-06-02
相关资源
相似解决方案