I’m trying to move an existing project into a new git repo
So far I’ve:
-
Created a new repo in Github
-
Cloned it locally
-
Copied all the project files into the repo directory
-
Staged all the files
-
Done an initial commit
But one of the directories didn’t commit and when I view it in Tower (Mac OSX GUI) the directory looks like this:
directory-name -> (null)
So I then:
-
Removed the directory
-
Staged and committed that change
-
Copied the directory into the repo again
-
Staged and committed the new copy of the directory
But the directory is still sitting in the staging area as (null).
What is wrong with the directory that would cause this? Or is it something inside the directory?
If I select the directory in tower, I can see the following in the diff section:
- Subproject commit 9c9af5520163c9980adf780d527dd5a830ec4fe5
+ Subproject commit 9c9af5520163c9980adf780d527dd5a830ec4fe5-dirty
I’ve searched around but I don’t fully understand the other answers sorry – any help or suggestions would be much appreciated.
Probably, your the directory, you’re talking about, is empty or contains only files which are ignored by your git configuration. GIT does not tracks empty directories.