[英]How to add a new project as a commit instead of an old one and not lose history?
I use Intellij to upload projects on Github, is it possible to upload a new project as an old commit?我使用 Intellij 在 Github 上上传项目,是否可以将新项目作为旧提交上传? Of course, I don't want to lose the history of the old project.
当然,我不想丢失旧项目的历史。
Yes it is possible.对的,这是可能的。
All you have to do is delete all files of old project and copy paste the files of new project inside the project folder.您所要做的就是删除旧项目的所有文件并将新项目的文件复制粘贴到项目文件夹中。 I hope you don't have to change this project folder name.
我希望您不必更改此项目文件夹名称。 But make sure you don't delete
.git
folder inside your project folder.但请确保不要删除项目文件夹中的
.git
文件夹。 It's a hidden folder.这是一个隐藏文件夹。 Rest all you can delete.
Rest 所有你可以删除。
After that just commit this big change and a new project will be pushed over the old project in the repository as a commit.之后,只需提交这个重大更改,一个新项目将作为提交推送到存储库中的旧项目之上。
I hope you know how to commit.我希望你知道如何承诺。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.