delete branch/tag in gerrit web page successfully but not deleted in gitlab backend

you are not allowed to push code to protected branches on this project pre receive hook declined
remote: you are not allowed to push code to this project. gitlab
gitlab: you are not allowed to push code to protected branches on this project
remote: you are not allowed to push code to this project. fatal: unable to access
gitlab protected branch
remote: you are not allowed to upload code gitlab ci
you are not allowed to push code to this project fatal could not read from remote repository
remote you are not allowed to push code to this project. the requested url returned error 403

What steps will reproduce the problem?

Select a branch and delete it in gerrit web page.

What is the expected output?

Delete the branch successfully in gerrit web page and also deleted the branch in gitlab.

What do you see instead?

Not deleted in gitlab.

Additional information:

  1. normal code changes can replicate to gitlab successfully.
  2. and there is no error msg in replication_log file.
  3. this problem also exists when delete a tag.

It seems you're confusing Gerrit branches (remote) with your branches (local). When you delete a Gerrit branch in the UI you're removing a remote branch, this has nothing to do with your local branches.

Go to your local repository and execute the "git branch -a" command. Suppose you get the following:

git branch -a

* master
  feature1
  feature2
  remotes/origin/master
  remotes/origin/feature1

This means that you Gerrit has 2 branches (feature1 and master) and you have 3 local branches (master, feature1 and feature2). If you delete, for example, the "feature1" branch on Gerrit UI, you'll not see the "remotes/origin/feature1" on your local repository as soon you execute the command "git fetch", but you'll continue to see the branch "feature1". It's a local branch. To remove it you need to execute "git branch -D feature1" locally.

You are not allowed to push code to this project.! [remote , It seems you're confusing Gerrit branches (remote) with your branches (local). When you delete a Gerrit branch in the UI you're removing a  According to issue #1224 (closed), you have to right click and then open Browse References and then "Delete all tags" isn't even on the Tags, it's under origin. isn't even on the Tags, it's under origin.


when I add a branch in gerrit web page, the replication log is:

[2018-05-28 19:29:54,076] [] scheduling replication gerrit_test_only:refs/heads/release/v0.0.1 => git@192.168.0.224:fund-wuhan/gerrit_test_only.git
[2018-05-28 19:29:54,077] [] scheduled gerrit_test_only:refs/heads/release/v0.0.1 => [96bab7ae] push git@192.168.0.224:fund-wuhan/gerrit_test_only.git to run after 15s
[2018-05-28 19:30:09,077] [96bab7ae] Replication to git@192.168.0.224:fund-wuhan/gerrit_test_only.git started...
[2018-05-28 19:30:09,079] [96bab7ae] Push to git@192.168.0.224:fund-wuhan/gerrit_test_only.git references: [RemoteRefUpdate[remoteName=refs/heads/release/v0.0.1, NOT_ATTEMPTED, (null)...ecf1c112a9596a6d4a9054fc26dd2158ce8a9762, srcRef=refs/heads/release/v0.0.1, forceUpdate, message=null]]
[2018-05-28 19:30:09,697] [96bab7ae] Replication to git@192.168.0.224:fund-wuhan/gerrit_test_only.git completed in 610ms, 15000ms delay, 0 retries

when I delete a branch in gerrit web page, the replication log is:

[2018-05-28 19:30:31,370] [] scheduling replication gerrit_test_only:refs/heads/release/v0.0.1 => git@192.168.0.224:fund-wuhan/gerrit_test_only.git
[2018-05-28 19:30:31,370] [] scheduled gerrit_test_only:refs/heads/release/v0.0.1 => [1679e7ee] push git@192.168.0.224:fund-wuhan/gerrit_test_only.git to run after 15s
[2018-05-28 19:30:46,370] [1679e7ee] Replication to git@192.168.0.224:fund-wuhan/gerrit_test_only.git started...
[2018-05-28 19:30:46,373] [1679e7ee] Replication to git@192.168.0.224:fund-wuhan/gerrit_test_only.git completed in 2ms, 15000ms delay, 0 retries

you can find that there is no

"Push to git@192.168.0.224:fund-wuhan/gerrit_test_only.git references: [RemoteRefUpdate[remoteName=refs/heads/release/v0.0.1, NOT_ATTEMPTED, (null)...ecf1c112a9596a6d4a9054fc26dd2158ce8a9762, srcRef=refs/heads/release/v0.0.1, forceUpdate, message=null]]"

when I delete a branch. I think that's the reason.

Tag of deleted branch doesn't appear in network view, Even with no branches, I get "remote: GitLab: You are not allowed to push code to as clicking "Settings => Protected branches" just takes you to the settings page. in the web UI (readme.md) and commit it and now "Protected branches" looks right I deleted it and on the next "git push" I was reprompted and provided the  Issue #676 (closed) seems to have addressed this but it seems to work only against branches What is the expected output? What do you see instead? I still can't figure out how to remove a remote tag and looking at the source file it seems to indicate an empty push is required but that only works if you push against a branch.


remote.NAME.mirror If true, replication will remove remote branches that are absent locally or invisible to the replication (for example read access denied via authGroup option).

By default, false, do not remove remote branches.

add "mirror = true" to replication.config just ok.

EGit/User Guide - Eclipsepedia, The tag still exists in the tag page, it still exists in the combobox of the network page, but If you delete branch thats contains tags, the commits are not removed​  I'm unable to delete I tried using Edit > Delete on the website, got the "Page was successfully deleted" alert, and the page is still there. Making an edit through the website and saving causes a new page to be created. Deleting and editing works properly on other pages. The only pattern is that they don't have the \ character in the title.


Push command successful but no changes reflected on Remote , 3.10.1 Merging a branch or a tag into the current branch If both HOME and HOMEDRIVE are not defined HOMESHARE will be Make sure to use the Git Sharing Wizard correctly. this page or press Next if you are working with Gerrit Code Review and For refs which will be delete [deleted] is shown. run git alias, add regexp to match tags to delete; git remove-tags <regexp> if you do not know which regexp is work, recommend use list first; git tag --list DEMO $ git tag -a 'v10.0.0' $ git remove-tags 'v10.0.*' $ git tag -l


Uploading Changes, Branch Import set up to track remote branch Import from origin. You're opening the file from the website of your host like GitHub/Bitbucket? The remote git repo and lfs store does not store your files in the same way as your What is ironic though is that when i do, from the remote site, a git stash; The  I can only add tags to remote repository now, but can't remove. Anyway this function must exist (git allows do this). It's strange, but TortoiseGIT shows no origin/<branch/tag> in "Show log" after I removed them all and pushed all changes and at the same time I see these branches/tags in new working directory after clonning remote repository.


10 things I hate about Git, Gerrit supports two protocols for uploading changes; SSH and HTTP/HTTPS. On Gerrit installations that do not support SSH authentication, the user must obtained by clicking on Obtain Password and then following the site-specific instructions. Delete: Implies Update, but also allows an existing branch to be deleted. GitLab.com Support Tracker Releases; Repository Repository Files Commits Branches Tags Contributors Graph Compare Locked Files Issues 859 Can't delete branch