git 发布到远程分支

git push 提交报错:当前版本低于远程仓库版本。

解决办法(1):

可以新建分支 git branch myself2 

然后再 git push -u origin myself2 

 ! [rejected]        master -> master (non-fast-forward)


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.
ss-
发布了20 篇原创文章 · 获赞 7 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/month_ss_815/article/details/88837133