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 @ 2022-08-16 23:45  Merakia  阅读(44)  评论(0)    收藏  举报