如何在Netbeans 8.2中显示.git文件夹 [英] How can I show .git folder in Netbeans 8.2

查看:435
本文介绍了如何在Netbeans 8.2中显示.git文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

同样的问题已经

解决方案

在Netbeans 8.1和8.2中,这似乎并不像预期的那样工作,但这里是一种解决方法。

创建指向.git文件夹的链接我注意到,无论您在设置 - >其他 - >文件 - > IDE忽略的文件中做什么,.git文件夹不会出现在文件面板中。



然而,如果您只对.git文件夹的内容感兴趣,那么为它创建一个别名:

  ln -s .git .git-alias 

或者Windows,

  mklink / J。 git-alias .git 



<阅读更多关于创建连接点或符号链接的信息,以及为什么你想要更喜欢一个在另一个


This same question has been asked already, but the accepted answer isn't working for the new version of Netbeans 8.2. The .git directory that Netbeans isn't showing is at the same level of .gitignore, at the root of the project.

So, how to show it?

解决方案

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:

这篇关于如何在Netbeans 8.2中显示.git文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆