

As long as files get tracked when the commit is created, all subsequent pushes and pulls will by default include those files. The tracking of file changes occurs at add/commit time, not on push or pull. “*.” is the proper syntax for excluding all files with a certain extension. jar files?īackground facts to keep in mind as you troubleshoot:
GITIGNORE GITHUB DESKTOP CODE
What files are part of the initial commit? Is it just source code and project files, or does it include the. Orr, the problem is when I pull and push from different computers, is that giving me my problem? To me it shouldnt be, because a gitignore should just ignore those types of files! Thanks! I know the answers are simple, but they arent working, so what can I do? gitignore so that it only tracks things in the src folder, and if that isnt possible, to not track. Make the initial commit, no problem.Īfter that, what do I add to the. Once I start it and copy the code files, i make it into a repo using eclipse, got that. Ok so nothing is working so I’ve decided to start a new project. I strongly suspect the above post contains your answer: adding patterns to the gitignore does not impact files already being tracked.Īs far as I know, The most recent example of gitignore you posted likely will not work either, as it would exclude Gradle or eclipse files required to define the project. OP, I think you are going to have to be a bit more specific about what is not working.
