git仓库太大
高洛峰
高洛峰 2017-05-02 09:22:02
0
2
655

本地创建的仓库,多次提交后,发现好大object目录有100M,请问怎么清理

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
世界只因有你

Git will not submit all the files every time, so the first submission of 100M is just a little slower, so you don’t have to worry about problems in later development.

为情所困

If a large file is submitted by mistake
1 Use the git filter-branch command to completely delete it from the history
2 Add to .gitignore
3 git push -force to overwrite the contents of the remote
4 Notify other developers to ferch and checkout to the new branch

Be careful when modifying remote history, and confirm carefully before pushing.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template