热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

![已拒绝]master->master(非快进)在新的最新分支上

如何解决《![已拒绝]master->master(非快进)在新的最新分支上》经验,请问有什么解决方案?

在我的回购中,我有一个master分支和一个new分支.

我已经工作new了一段时间,做出了提交,并在我离开时推动.我现在决定分支new并打电话给它newest.所以我做了

git checkout -b "newest"

并且分支已成功创建.我添加了一个文件,并开始研究它.我做了几次改变.

但是当我尝试推送这个新分支并对其进行更改时origin,我收到此错误:

C:\wamp\www\myproj>git push origin
To https://github.com/Imray/Proj.git
 ! [rejected]        master -> master (non-fast-forward)
 ! [rejected]        new -> new (non-fast-forward)
error: failed to push some refs to 'https://github.com/Imray/Proj.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details. 

所以,按照说明中的说明,我试过了git pull,但后来我得到了:

There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details

    git pull  

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/ newest

我被卡住了.

如何将我的新分支和更改推送到github


推荐阅读
author-avatar
ScorpIo斡
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有