git add .
git remote add origin https://gitee.com/chz367/point_h5.git
git config --global user.name "chz367"
git config --global user.email"chz_367@163.com"
git init
git remote add origin https://gitee.com/chz367/point_h5.git
git pull https://gitee.com/chz367/point_h5.git master
git status
git add .
git commit -am"h5原始代码"
git push -u origin master -f 

 

在上传本地代码到github仓库时,出现下面这个问题:

$ git remote add origin https://github.com/jennaqin/jennaqin.github.io.git

  fatal: remote origin already exists.

解决办法:

  1. 先移除
git remote rm origin

 

  • 1
  1. 再次添加
git remote add origin https://github.com/jennaqin/jennaqin.github.io.git

 

相关文章:

  • 2021-12-07
  • 2022-01-01
  • 2021-07-29
  • 2021-12-02
  • 2021-09-18
  • 2021-06-01
  • 2022-12-23
  • 2022-01-08
猜你喜欢
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-04-06
  • 2022-12-23
相关资源
相似解决方案