git码云命令
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.
解决办法:
- 先移除
git remote rm origin
- 1
- 再次添加
git remote add origin https://github.com/jennaqin/jennaqin.github.io.git