Hi,Need Help!!!I have one Gerrit server and in a AOSP project I have added one new Directory.did Empty commit directly bypassing code review with remote as user root directly.Issue:-I am not able to change HEAD : master to another mybranch namewhen I push it create another branch rather than updating HEAD from master to mybranch.git push origin HEAD:refs/heads/mybranch
Thanks Sven Selberg for you response to my Query.I have gone through this url before updating my query here. But it didn't help.
UI I tried but somehow it changed but when I pushed changes from client it didn't went through returned some error.
git
push origin HEAD:refs/for/mybranch
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 42 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 1.97 KiB | 1.97 MiB/s, done.
Total 4 (delta 0), reused 0 (delta 0)
remote: Processing changes: new: 1, refs: 1, done
remote:
remote: New Changes:
remote: http://10.0.0.100:8080/#/c/AndR/tools/mmxscript/+/242 N23 : Build
Display
remote:
To ssh://10.0.0.100:29418/AndR/tools/mmxscript
! [remote rejected] HEAD -> refs/for/mybranch (internal server error: Error
inserting change/patchset)
error: failed to push some refs to 'ssh://us...@10.0.0.100:29418/AndR/tools/mmxscript'