Git Hub GitIgnore error

佐手、 提交于 2019-12-11 01:08:23

问题


I keep getting this error:

error: Your local changes to the following files would be overwritten by merge:
    .gitignore

How do I make it ignore the .gitignore file in my HOME directory?

My .gitignore looks like this and is being ignored:

# Can also ignore all directories and files in a directory.
app/config/**
app/config/**/*
plugins/**
vendors/shells/**/*

回答1:


Don't ignore it.

But commit it. There is no reason not to save this file.

If you commit it and then merge, the merge will (probably correctly) add your rules and the received ones.



来源:https://stackoverflow.com/questions/10750351/git-hub-gitignore-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!