git - .gitignore won't let me upload files -


i'm learning use github , here's problem.

i uploaded program github (git add, commit, push). noticed files in 1 of folders missing, replaced .gitignore

the contents of "src" folder should follows:

src -> model, controller     model -> x.java, y.java z.java     controller -> w.java 

instead of above, there single .gitignore file in src. contents of file like:

/model/ /controller/ 

why did happen , how can fix this?

that can happen instance egit: preference settings under team > ignored resources can define "derived" flag, generate .gitignore.

if model , controller folder considered "derived" (ie "generated"), egit might have generated .gitignore.

to fix it, check preferences,

derived

also git add --force folders, delete .gitignore, commit , push.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -