IMB
IMB

Reputation: 15929

Netbeans doesn't match Git status

Doing git status returnsnothing to commit, working tree clean but Netbeans project/files sidebar indicates folders and files Contains add/modified or deleted files which means Netbeans thinks there are files in the folder that are not commited.

Any ideas how to "sync" git status with Netbeans?

Upvotes: 1

Views: 1330

Answers (1)

Dmitry.M
Dmitry.M

Reputation: 2972

NetBeans 11.3 or 11.2

It could be a bug. It was introduced in NetBeans 11.3 or 11.2 when implementing this improvement (updating jgit to 5.5.0). There is a pull request and probably it will be merged either in 12.0 or 12.1.

Other versions

Sometimes for a big project, NetBeans doesn't automatically refresh statuses. For me manually asking for status refreshing usually helps.

For refreshing go to the file or project or the parent folder, right-click on the mouse -> git -> show changes -> and click refresh statuses.

enter image description here

Upvotes: 1

Related Questions