Search
Question: Remote rejected after resetting to previous commit
0
gravatar for alex.gos90
29 days ago by
alex.gos9010
alex.gos9010 wrote:

Hi all,

I submitted a merge commit, where I later realised that the only thing it includes are duplicate commits. This is the current log:

commit 80fccdc8bfcc8a4b6b8c17a8b2f46e19031b5cd8 (HEAD, bioc_upstream/master)
Merge: c6f7deb 0cc3075
Author: Alexander Gosdschan <alexander.gosdschan@mdc-berlin.de>
Date:   Tue Oct 24 20:44:36 2017 +0200

    Merge branch 'master' of ssh://github.com/alexg9010/methylKit

commit c6f7debc62b6cd5b6782512d0280db738da81991 (origin/master, origin/HEAD, github_upstream/master, newBiocMaster, master)
Author: Alexander Gosdschan <alexander.gosdschan@mdc-berlin.de>
Date:   Tue Oct 24 20:22:47 2017 +0200

    update news and bump version number

commit ae86509371d40dc536766b72e1919839986393d4
Author: Alexander Gosdschan <alexander.gosdschan@mdc-berlin.de>
Date:   Tue Oct 24 20:18:52 2017 +0200

    methCalls: write conversion stats to extra file

So I wanted to reset to the previous commit using the steps described here.

git reset --hard c6f7debc62b6cd5b6782512d0280db738da81991

The new log is this:

commit c6f7debc62b6cd5b6782512d0280db738da81991 (HEAD, origin/master, origin/HEAD, github_upstream/master, newBiocMaster, master)
Author: Alexander Gosdschan <alexander.gosdschan@mdc-berlin.de>
Date:   Tue Oct 24 20:22:47 2017 +0200

    update news and bump version number

commit ae86509371d40dc536766b72e1919839986393d4
Author: Alexander Gosdschan <alexander.gosdschan@mdc-berlin.de>
Date:   Tue Oct 24 20:18:52 2017 +0200

    methCalls: write conversion stats to extra file

But my forced push was rejected:

tursun16:methylKit agosdsc$ git push -f bioc_upstream master
Total 0 (delta 0), reused 0 (delta 0)
remote: FATAL: + refs/heads/master packages/methylKit a.gosdschan DENIED by fallthru
remote: error: hook declined to update refs/heads/master
To git.bioconductor.org:packages/methylKit.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'git@git.bioconductor.org:packages/methylKit.git'

It would be nice if somebody could help me here, or at least explain why it did not work.

Best, Alex

ADD COMMENTlink modified 24 days ago by nitesh.turaga120 • written 29 days ago by alex.gos9010
1
gravatar for nitesh.turaga
24 days ago by
nitesh.turaga120
United States
nitesh.turaga120 wrote:

Hi,

You cannot force push to the git.bioconductor.org repository. This is not allowed.

You need to follow ,

http://bioconductor.org/developers/how-to/git/sync-existing-repositories/

and pay close attention to point#8

http://bioconductor.org/developers/how-to/git/abandon-changes/#force-bioconductor--to-github-

If you still have issues, after following those two manuals. Please send an email to bioc-devel. These questions are more relevant in that mailing list.

Also, please ask the questions BEFORE you push to git.bioconductor.org. We'd rather make sure that there are no duplicate commits, and the state of your repository is clean.

ADD COMMENTlink written 24 days ago by nitesh.turaga120
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 145 users visited in the last hour