git - Should I commit .gitignore file? -


this question has answer here:

this seems dumbiest question obvious answer. , me until now. but... after reading proper section of github help got lost. says:

this file can committed repository, sharing rule list other users clone repository.

up until now, everyone, i've been talking git telling me, .gitingore file must commited or else it's rules won't work! every git-newbie's question: "why .gitignore rules not applied?" can answered simple: "did commited it?".

and now, here comes github saying, file can be commited, isn't necessary...

yes, can track .gitignore file, not have to.

the main reason why people working on project ignoring same files.

also see this: should commit .gitignore git repos?


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -