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 -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -