本文翻译自:Delete forked repo from GitHub

I'm starting with git and GitHub and there's a project I'm watching on GitHub. 我先从git和GitHub开始,然后在GitHub上观看一个项目。 I unintentionally clicked to fork it. 我无意间点击了它。 Now it appears as a new project to me. 现在,它对我来说是一个新项目。

I have some doubts about it: 我对此有些怀疑:

  • I know if commit or do another thing to my forked repo, it will be updated, but the updated code will take effect only after the project's author request the pull. 我知道如果对派生的仓库进行提交或做其他事情,它将被更新,但是更新的代码仅在项目的作者请求拉动之后才生效。 Right? 对?
  • If I go to admin panel on GitHub there's a delete option. 如果我转到GitHub上的管理面板,则有一个删除选项。 If I delete it as the option above, will it make any effect in the original one or not? 如果将其作为上述选项删除,它是否会对原始文​​件生效?

I'd like to delete it. 我想删除它。 By now I'm just studying the code and don't really need the fork. 到目前为止,我只是在研究代码,实际上并不需要分叉。


#1楼

参考:https://stackoom.com/question/lQKd/从GitHub删除分支的仓库


#2楼

Deleting it will do nothing to the original project. 删除它对原始项目无济于事。 Editing it will only edit your fork on your repo page. 编辑它只会在回购页面上编辑您的fork。


#3楼

By far the easiest way is to log in gitHub account: 到目前为止,最简单的方法是登录gitHub帐户:

  1. Click to your repository {for example yourUsername/yourRepository for example mbaric/test } 点击进入您的存储库{例如,例如yourUsername / yourRepository,例如mbaric/test }
  2. Then in the main toolbar of github click on Settings 然后在github的主工具栏中单击设置
  3. Scroll to the bottom of the page to the section called Danger Zone and you will find Delete this repository button 滚动到页面底部到危险区域 ,您将找到删除此存储库按钮
  4. When you click it another pop up will appear here you need to type in the name of your repository and click on the button below which says: I understand the consequences, delete the repository 单击它时,将在此处显示另一个弹出窗口,您需要输入存储库的名称,然后单击下面的按钮,其中显示: 我了解后果,删除存储库
  5. If you are having trouble to do it, below are the images that can be checked… 如果您在执行此操作时遇到麻烦,请检查以下图像...

2018-08-21 - Here are NEW images. 2018-08-21-这是新图像。 Enjoy. 请享用。





#4楼

Just delete the forked repo from your GitHub account. 只需从您的GitHub帐户中删除分叉的仓库即可。

https://help.github.com/articles/deleting-a-repository/ https://help.github.com/articles/deleting-a-repository/

  • If I go to admin panel on GitHub there's a delete option. 如果我转到GitHub上的管理面板,则有一个删除选项。 If I delete it as the option above, will it make any effect in the original one or not? 如果将其作为上述选项删除,它是否会对原始文​​件生效?

It wont make any changes in the original one; 它不会对原始版本进行任何更改; cos, its your repo now. cos,现在是您的仓库。


#5楼

There will not be any harm deleting the forked repositories. 删除分叉的存储库不会有任何危害。 You can again fork that. 您可以再次分叉。 It won't change the original code. 它不会更改原始代码。 The flow is like this... 流程是这样的...

1) You fork a repository. 1)您分叉一个存储库。 Just think of this as another copy of code which you can access or make changes to. 只需将其视为可以访问或进行更改的另一个代码副本即可。 The url of this repository will be of the form https://github.com/your-user-name/original-repo . 该存储库的URL的格式为https://github.com/your-user-name/original-repo

2) You make some changes to that in your local machine and push them. 2)您对本地计算机中的内容进行了一些更改,然后将其推送。 Now the copy you created will be updated, but not the original one from which you have forked your repo. 现在,您创建的副本将被更新,但不会更新您从中分叉存储库的原始副本。

3) If you want the changes you added to your forked repo to be applied to original repo(this may be helpful to the people who are organizing the repo) then you have to create a pull request which you can do through UI. 3)如果您希望将添加到叉式仓库中的更改应用于原始仓库(这对组织仓库的人员可能会有帮助),那么您必须创建一个pull request ,您可以通过UI进行此操作。 Then if they like your contribution, they will merge that with their code. 然后,如果他们喜欢您的贡献,他们会将其与代码merge

Generally this is what open source organizations do. 通常,这就是开源组织所做的。


#6楼

Answer is NO. 答案是否定的。 It won't affect the original/main repository where you forked from. 它不会影响您从中分叉的原始/主存储库。 (Functionally, it will be incorrect if such an access is provided to a non-owner). (从功能上讲,如果将这种访问权限提供给非所有者,则将是不正确的)。

Just wanted to add this though. 只是想添加此。

Warning: It will delete the local commits and branches you created on your forked repo. 警告:它将删除您在分叉存储库上创建的本地提交和分支。 So, before deleting make sure there is a backup of that code with you if it is important. 因此,如果重要,请在删除之前确保随身携带该代码的备份。

Best way would be getting a git backup of forked repo using: 最好的方法是使用以下命令获取分叉仓库的git备份:

git bundle

or other methods that are familiar. 或其他熟悉的方法。

从GitHub删除分支的仓库相关推荐

  1. github 删除分支_Github新手入门指南

    这篇文章是我入门Github时期记录的笔记,当时主要是参考GitHub入门与实践 (豆瓣)一书,文中有部分内容也来源于此. 个人感觉比较适合新手入门的,感兴趣的朋友可以自行阅读. 前面的简介和Gith ...

  2. github删除文件_github 仓库中删除历史大文件

    问题 如果git中提交了大文件,而且保存到了版本库中,那在下载或者克隆git包的时候,速度会非常慢.再加上github在国内访问本来就很慢,可能会导致包无法下载(克隆).为了提升下载(克隆)速度,可以 ...

  3. Github常用分支操作

    文章目录 Github常用分支操作 一.在GitHub上修改分支名称 二.在Github创建新的分支 三.在Github删除分支 四.在Github切换默认分支 Github常用分支操作 一.在Git ...

  4. git创建/合并分支/删除分支/将修改后的内容同步到GitHub远程仓库

    1.创建分支并切换到刚创建的分支(这里创建新的分支来修改README.md的内容然后将创建的分支与master分支合并,最后删除创建的分支) $ git checkout -b 分支名 Switche ...

  5. Github网页创建分支,下载分支,删除分支

    创建分支:首先创建新的分支,使用git branch orgin(分支名),不能与github的已有分支名重复,否则就需要pull,文件添加到本地仓库区(如果主分支的仓库区为空是不能创建其他分支的哦) ...

  6. github删除仓库_github怎么删除仓库

    打开你的仓库地址:your-repo-url/settings"setting"->最底下有"dangerzone"->"deletethisrepository"之后会确认删除的仓库名和 ...

  7. Github创建分支并删除文件

    Github创建分支并删除文件 1. $ git init 2. $ git remote add origin https://github.com/binbinErices/Car_CRM_Sys ...

  8. 删除github上的一个仓库或者仓库里面的某个文件

    删除github上的仓库或文件 1.删除github上的一个仓库 2.删除仓库里面的某个文件 3.删除github仓库里面的文件 4.将文件添加到github仓库里面 5.Github上修改仓库里的文 ...

  9. GitHub删除仓库小技巧

    GitHub 是一个厉害的面向开源及私有软件项目的托管平台,因为只支持 Git 作为唯一的版本库格式进行托管,故名 GitHub. 因为工作需要,在家里有一台电脑,公司也有一台电脑,在做开发的时候来回 ...

最新文章

  1. JVM加载class文件的原理机制
  2. java系统界面找不到符号,找不到符号,java找不到符号
  3. 软件测试作业7:构建弱健壮的等价类测试用例
  4. 非名校学生如何进入一二线互联网公司
  5. android 每日构建_Android构建类型和产品风味
  6. 6.7. exists, not exists
  7. http://blog.csdn.net/zbyufei/article/details/6096881
  8. 瀚高数据库和mysql区别,瀚高数据库----select用法
  9. Gartner曾劭清:云计算市场依然存在太多变局
  10. 湖南大学校园网登录地址
  11. 【MacBook】激活有个步骤要输面的问题:Enter the passcode you use to unlock the MacBook ***.
  12. 模仿微信九宫格图片展示控件
  13. bigemap中下载边界_BIGEMAP地图下载软件-BIGEMAP地图下载器下载v19.2.0.0-西西软件下载...
  14. python:命名空间学习
  15. pci 中断冲突_PCI设备中断冲突的基本解决办法
  16. 鼠标参数以及选购DPI和报告率
  17. 韩国李世龙19岁当爹 与洪瑛琦姐弟恋开花结果
  18. Unity3D WebGL部署
  19. 【数据结构】第15-16周练习题 查找排序
  20. java 删除指定文件夹内所有文件

热门文章

  1. 12个提升PostgreSQL_TSDB 插入性能的建议
  2. 2020年12月24日人生的又一个节点(找工作)所做出的选择
  3. 蓝桥杯单片机14届省赛
  4. 解读Ulord系统系列之价值的桥梁侧链
  5. 交换高质量友情链接对网站SEO有优化有哪些好处?
  6. 国内外计算机专业图形图像处理课程现状,中职学校Photoshop图形图像处理课程的教学反思...
  7. 受限玻尔兹曼机(RBM)原理总结
  8. SQL server中ROW_NUMBER() OVER()函数的使用方法
  9. 2023年律师事务所研究报告
  10. 2022宜宾市南溪区总工会招聘工会工作者仿真试题及答案(多选题)