git - .gitignore file is not working in my project -


i have project named "shortcut", here issue & steps

cd shortcut vim .gitignore  git init git add * git status  

i still see .exe files , .pdb files in staging. what's wrong git operation steps ???

here .gitignore file

[dd]ebug/ [dd]ebugpublic/ [rr]elease/ [rr]eleases/ *.exe *.pdb *.dll 

i think you're confused, although it's hard tell where. consider following:

$ mkdir shortcut $ cd shortcut  $ touch foo $ echo foo > .gitignore  $ git init initialized empty git repository in ~/shortcut/.git/  $ git add * following paths ignored 1 of .gitignore files: foo use -f if want add them. fatal: no files added 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -