問題:
I have a private repository on GitHub that I want to make public.我在 GitHub 上有一個要公開的私有存儲庫。 However, some of the initial commits contain information that I don't want to publicize (hard-coded credentials, etc).但是,一些初始提交包含我不想公開的信息(硬編碼憑據等)。
What is the easiest route to make the latest commit public (I don't really need or want the previous commits in the public repository) without including some or all of the commit history?在不包含部分或全部提交歷史記錄的情況下,使最新提交公開(我真的不需要或不想要公共存儲庫中的先前提交)的最簡單方法是什麼?
解決方案:
參考一: https://stackoom.com/question/1zEAv參考二: Copy a git repo without history