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

node.js - How to mock a third-party api calls in the backend -

java - Could not locate OpenAL library -

Non Unique Username with ASP.Net Identity 2.0 -