gitee上创建仓库并将项目上传到远端

还是第一次自己上传代码到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

posted @   Merakia  阅读(39)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
点击右上角即可分享
微信分享提示