I have situation like I need to hard reset from one branch to another.I have explained the scenario over here.How to hard reset from one git branch to other in JGit? It is working like a charm for git project.I need it for gerrit projects also.If I do the same and push it htrough gerrit
git push http://obulis@192.168.15.19:8088/obuli/project1 HEAD:refs/for/master
I am getting error like this:
Total 0 (delta 0), reused 0 (delta 0)
remote: Processing changes: refs: 1, done
To http://obulis@192.168.15.19:8088/obuli/project1
! [remote rejected] HEAD -> refs/for/master (no new changes)
error: failed to push some refs to
http://obulis@192.168.215.19:8088/obuli/project1'
Any idea ?