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,
also git add --force
folders, delete .gitignore, commit , push.
Comments
Post a Comment