git - Adding .gitignore file to the project -
following scenario.
i using windows 8 , have made directory tracked git. see working of gitignore have made sample text file in notepad , saved .gitignore file , set it's type all. committed file repository. expecting when change data of file , git not complain git still saying changing not staged yet filename.
why that?
i have read similar question on guy used git checkout discard file why .gitgnore didnot work solely?
i asking since there types of files log files keeps changing want add our project contained in git dont want git continuously complaining it.
the reason because file want ignore still followed git. need remove file git using git rm --cache filename
Comments
Post a Comment