netbeans使用git_如何在Netbeans 8.2中显示.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:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值