How can I show .git folder in Netbeans 8.2

穿精又带淫゛_ 提交于 2019-12-05 23:01:11
Ashutosh Jindal

This appears to not work as expected in both Netbeans 8.1 and 8.2, however here is a workaround.


Creating a link to the .git folder

I noticed that no matter what you do in Settings -> Miscellaneous -> Files -> Files Ignored by the IDE, the .git folder does not appear in the Files panel.

However, if you were only interested in the contents of the .git folder then creating an alias to it worked for me:

ln -s .git .git-alias

Or for Windows,

 mklink /J .git-alias .git  

(Read more about creating junctions or symbolic links and why you would want to prefer one over the other here and here respectively)

Change Netbeans setting to not ignore .git* folders

After that, starting from the default settings, I changed the Files Ignored by the IDE to remove .git so that it becomes:

^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(hg|svn|cache|DS_Store)$|^Thumbs.db$

And the .git-alias folder appeared fine:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!