How can I show .git folder in Netbeans

帅比萌擦擦* 提交于 2019-11-29 13:16:39

问题


I have a project which I check out remotely from my VM.

Now it checks out all files except the one that he doesn't see.

Which happens to be the .git folder...

I already removed the regex from the

options->miscellenous->files

From

^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!htaccess$).*$

to

^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!htaccess$)$

But the folder itself still doesn't get pulled...

Anyone has a solution for this?

I am using Netbeans 7.3 64 bit on windows 7.


回答1:


Your solution should work, as illustrated in the comments of "Display hidden dot files and directories in NetBeans":

In Netbeans 7.1 it's also in Tools -> Options -> Miscellaneous -> Files

^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!htaccess$).*$

Just the remove the .* at the end and you're fine.

But all the references I have seen (like my old answer) mention that you need to restart NetBeans to see that updated pattern takes effect.
Or at least try a Source->Scan for External Changes, as mentioned in "How do I refresh Netbeans workspace?".




回答2:


You can make visible only .git file. like this

go in Netbeans 8 in Tools -> Options -> Miscellaneous -> Files

and enter

^(CVS|SCCS|vssver.?.scc|#.#|%.%|_svn)$|~$|^.(?!(htaccess|git.+|hgignore)$).*$



来源:https://stackoverflow.com/questions/15699347/how-can-i-show-git-folder-in-netbeans

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