简体   繁体   English

如果我将私有 GitHub 存储库切换为公共存储库,我的编辑历史记录也会公开吗?

[英]If I switch a private GitHub repository to public, will my edit history also be public?

I have been working on a project in a private GitHub repository, which I would like to make public.我一直在私人 GitHub 存储库中开展一个项目,我想将其公开。

However, I would like NOT to share all my previous edits to the project, but just show edits from the time the project goes public on.但是,我不想分享我之前对项目所做的所有编辑,而只是显示项目公开时的编辑。

Is this possible?这可能吗? Or should I instead make a new repository from scratch and upload my final, edited files there?或者我应该从头开始创建一个新的存储库并在那里上传我最终编辑的文件?

If you want to hide history, you have do not have it.如果你想隐藏历史,你没有它。 Thus - yes, create new repo from the files at HEAD of current.因此 - 是的,从当前 HEAD 的文件创建新的仓库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM