Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git 版本管理场景及解决方案合集 #8

Open
dkypooh opened this issue Feb 14, 2019 · 0 comments
Open

Git 版本管理场景及解决方案合集 #8

dkypooh opened this issue Feb 14, 2019 · 0 comments

Comments

@dkypooh
Copy link
Owner

dkypooh commented Feb 14, 2019

大家可以在这个ISSUE里面回复补充Git相关问题,一起完善 Git 场景解决方案

举例

场景: 有些情况开发者把原有不需要提交的代码提交到了远端仓库,再使用.gitignore忽略文件不生效。哪怕我们删除后再提交也没有办法忽略。这种情况下我们应该怎么解决?

方法: 我们可以使用git rm --cache 删除原来git跟踪的文件缓存,再在.gitignore里面添加忽略文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant