Skip to content

[Bioc-devel] Git error when pushing to bioconductor

7 messages · Shepherd, Lori, Turaga, Nitesh, Kangeyan, Divy

#
Hi,
    I maintain the scmeth package in bioconductor. Recently I made some
changes to the packages in my local branch and when I tried pushing it to
the bioconductor I got an error saying (Updates were rejected because the
tip of your current branch is behind its remote counterpart). I have
attached the screenshot.

I tried resolving the conflict manually and after that when I pushed the
changes I still got the same error. Any help with resolving the error is
greatly appreciated.

Thank you,
Divy Kangeyan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: git_error.png
Type: image/png
Size: 193404 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/bioc-devel/attachments/20180603/323203aa/attachment.png>
#
Have you tried doing a 'git pull upstream master' ?  Do you get any messages when running that command?

Generally try the following and post any error messages:
Git pull upstream master
( resolve any merge conflicts and commit )
( make any additional changes and commit)
Git push upstream master


Lori Shepherd
Bioconductor Core Team
Roswell Park Cancer Institute
Department of Biostatistics & Bioinformatics
Elm & Carlton Streets
Buffalo, New York 14263
#
Hi Lori,
            When I try Git pull upstream master, I get an error saying
*Automatic
merge failed; fix conflicts and then commit results*. When I fix the
conflict and push it I get the same error as in my previous email. I have
attached the full error message when I pull the upstream master branch here.

Thank you,
Divy

On Sun, Jun 3, 2018 at 9:28 PM, Shepherd, Lori <
Lori.Shepherd at roswellpark.org> wrote:

            

  
    
#
Hi Divy,

It might be possible that you did not resolve all the conflicts you have.

Generally, a `git status` will show you all the conflict  files which are needed to be cleaned up by the merge. When you do a clean conflict resolution, you will be able to push cleanly to git.bioconductor.org. 

Did you follow http://bioconductor.org/developers/how-to/git/resolve-conflicts/?

Please send me the output of following that document above.

Best

Nitesh
This email message may contain legally privileged and/or confidential information.  If you are not the intended recipient(s), or the employee or agent responsible for the delivery of this message to the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or use of this email message is prohibited.  If you have received this message in error, please notify the sender immediately by e-mail and delete this email message from your computer. Thank you.
#
Hi Nitesh,
               I followed the resolve merge conflict article you provided
step by step. There was no error until I got to the last step of pushing
the changes to the upstream. When I tried pushing it to the upstream branch
I got the same error. I have attached the branch history of upstream and
origin here. It seems both branches diverged on 05-19-2018. Is it possible
to merge the branches in some other way?

Thank you,
Divy

On Mon, Jun 4, 2018 at 8:10 AM, Turaga, Nitesh <
Nitesh.Turaga at roswellpark.org> wrote:

            

  
    
3 days later
#
Hi Divy,


Can you send me the output of your  
	
	git status

	git remote -v

Best,

Nitesh
This email message may contain legally privileged and/or confidential information.  If you are not the intended recipient(s), or the employee or agent responsible for the delivery of this message to the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or use of this email message is prohibited.  If you have received this message in error, please notify the sender immediately by e-mail and delete this email message from your computer. Thank you.
#
Hi Nitesh,
               I have attached the output for git status and git remote.

Thank you,
Divy

On Thu, Jun 7, 2018 at 2:04 PM, Turaga, Nitesh <
Nitesh.Turaga at roswellpark.org> wrote: