我在GitLab中创建了几个存储库。其中一个用于测试,有一些提交和分支。我想删除或删除这个存储库。我该怎么做呢?
当前回答
对于2021年的Gitlab版本
Go to the project page. URL look like this. https://gitlab.com/<username>/<project name> Select "Settings" in the left sidebar Select the "General" section (you must be in the repository you want to delete to delete it) If you have enough rights, then at the bottom of the page will be the section named "Advanced". Then Click the "Expand" button. Scroll down in the "Advanced" section, then Click the "Delete project" button. Put and confirm the repository name in the popup, then Click the "Yes, delete project" button.
其他回答
1.Gitlab主页 2.选择项目菜单下的项目按钮 3.点击你想要的项目 4.选择设置(从左侧栏) 5.单击高级设置展开高级设置,这将是页面的中间 6.点击删除 7.在Modal中写下你的项目名称
希望你能成功移除你的项目。快乐编码:)
截至2017年10月: 1. 在项目列表中,单击要删除的项目; 2. 在左侧工具栏,点击“Setting”按钮; 3.找到“高级设置”部分,并点击相关的“扩展”按钮; 4. 在底部你会发现“移除项目”按钮,点击它; 5. 在文本输入中键入项目名称并确认。
单击要删除的项目设置—>一般项目设置—>展开—>高级设置—>删除项目。
到今天为止,使用gitlab API v4,你可以通过以下curl请求删除一个项目:
curl -X DELETE --header "PRIVATE-TOKEN: <personal-access-token>" https://<gitlab-host>/api/v4/projects/<project-id>
地点:
personal-access-token在用户设置/访问令牌页面上生成,具有api范围, gitlab-host是你自己托管的gitlab域名或gitlab.com, Project-id位于存储库首页的顶部。
如果请求成功,您应该看到以下响应:
{"message":"202 Accepted"}
从2016年6月开始,点击右上角的设置按钮,点击列表底部的编辑项目。然后,滚动到页面底部的Remove项目部分。
这只适用于管理员/所有者。作为一个纯粹的项目维护者,你看不到“移除项目”按钮。
推荐文章
- 当我试图推到原点时,为什么Git告诉我“没有这样的远程‘原点’”?
- 如何从远程分支中挑选?
- 如何查看一个分支中的哪些提交不在另一个分支中?
- 如何取消在github上的拉请求?
- HEAD和master的区别
- GIT克隆在windows中跨本地文件系统回购
- RPC失败;卷度传输已关闭,剩余未完成的读取数据
- 我应该在.gitignore文件中添加Django迁移文件吗?
- 错误:您对以下文件的本地更改将被签出覆盖
- Git rebase—即使所有合并冲突都已解决,仍然会继续报错
- 在Git中,我如何知道我的当前版本是什么?
- 跟踪所有远程git分支作为本地分支
- 自定义SSH端口上的Git
- git如何显示不存在于.gitignore中的未跟踪文件
- Git错误:遇到7个文件应该是指针,但不是