I have a directory with a single file Foo.java
defining a class under package com.a.b.c
under a specific package i.e. src/com/a/b/c/Foo.java
I want to refactor and move the class in a different package e.g. com.x.y.x
i.e. src/com/x/y/z/Foo.java
I did the refactor from inside the IDE I am using and that led to the git status
showing:
src/com/a/b/c/Foo.java -> src/com/a/b/c/Foo.java
Now the issue is that the src/com/a/b/c
is still there and empty.
I know that git
has an issue with empty directories so now I am not sure how should I remove that? Should I do git rm -r src/com/a/b/c
and commit everything at once? Or is there a better way?