I have made my first commit; then created a branch (let\'s say branch1).
In this branch I\'ve created a directory \'example\' and commited. In GitHub I see my new branch
I'm trying to sort of get my head around what's going on over there. Is there anything IN your "example" folder? Git doesn't track empty folders.
If you branched and switched to your new branch then made a new folder and left it empty, and then did "git commit -a", you wouldn't get that new folder in the commit.
Which means it's untracked, which means checking out a different branch wouldn't remove it.