Git checkout branch leaves directory tree from other branch

git

Solution

The said directory hierarchy never contained a file leaf which means it was not actually tracked by git.

Problem

I have a branch2 who's source is branch1 and renamed a directory originating from branch1. When checking out branch1 the renamed directory remains present but is not marked as an unstaged modification. The renamed directory is of course not present as a commit on branch1. Why is this occurring?

Original source

Related problems