I have been trying to manage the local copy of the project I am working on using EGit.
I make a pull once there is a push from the other guys. However, there are files that show that I have uncommitted changes in my local repository, but I haven't made any change. I try to resolve these by manually identifying these changes and discover that they are from gitignore files, which I didn't create myself (the files also show errors occasionally).
Is it possible that the gitignore files are being auto-created? How can I maintain a synced local repo state? I am using Eclipse Kepler.
gitignore file will automatically be generated. Of course I mostly have things setup in global gitignore but this does come in handy for specific use cases.
gitignore file is a plain text file where each line contains a pattern for files/directories to ignore. Generally, this is placed in the root folder of the repository, and that's what I recommend. However, you can put it in any folder in the repository and you can also have multiple . gitignore files.
gitignore file. If a file is added, committed and another commit with the . gitignore is created, the file will still be part of the repository and therefore cloned.
It is possible that the settings "Automatically ignore derived resources" triggers the generation/modification of .gitignore
.
This is a consequence of bug 297674, adding that feature in EGit 2.3 (Q2 2013).
See the EGit tutorial:
You can also configure Eclipse to automatically ignore derived resources, e.g. class files via the
Window → Preferences → Team → Git → Projects → Automatically ignore derived resources
.. setting.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With