我不小心对 GitLab 存储库进行了 Gerrit 风格的推送。
也就是说,在我的本地分支上,我做了:
$ git push origin HEAD:refs/for/master
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 8 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 3.06 KiB | 184.00 KiB/s, done.
Total 4 (delta 2), reused 0 (delta 0), pack-reused 0
To gitlab.domain-name.com:project-name.git
* [new reference] HEAD -> refs/for/master
当我应该做的事情很简单时:
$ git push -u origin branch-name
据我所知,此参考在 GitLab Web GUI 上的任何地方都没有显示。
我该如何撤消此操作?我需要吗?