还是第一次自己上传代码到gitee上;
参考的https://blog.csdn.net/qq_51618777/article/details/124420589 这边博文。
如何查看本地的remote地址 : git remote -v
分支名 仓库名 这个是fetch还有push操作
origin https://gitee.com/仓库/emos-api.git (fetch)
中间有一段小插曲出现了一些参考博文中未出现的错误。
出现这个错误。是要先pull 在进行push
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
pull : $ git pull --rebase origin master
push: $ git push -u origin master
标签:origin,pull,git,remote,仓库,gitee,push,远端 From: https://www.cnblogs.com/merakia/p/16593438.html