0

I am about to throw my laptop through a wall, and am hoping for help before reaching that point. For reference, I am following these instructions exactly - https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/.

I have a directory ".../path/thisdir". Inside of thisdir are (1) a file called Demo.R and (2) a directory called sportVU. sportVU is a directory with ~15 files in it.

When I follow the instructions in that link, my github repo looks like this:

https://github.com/NicholasCanova/packageSportVU

Notice that the sportVU directory link cannot be clicked in github, and when I download the repo, sportVU is an empty folder. Why is this happening? This shouldn't be so tough.

EDIT: this is what the repo looks like in my local machine, I'm 100% sure it's not empty:

enter image description here

Canovice
  • 9,012
  • 22
  • 93
  • 211

2 Answers2

1

It could be that you have two .git folder in your directory. View hidden folders to see.

Similar questions: What does a grey icon in remote GitHub mean

Why can I not open my folder in GitHub?

Community
  • 1
  • 1
Alon
  • 883
  • 1
  • 6
  • 18
0

Since Git doesn't store empty folders the steps you should follow exactly are:

Delete the old repo and start again following exactly my steps.

  1. git clone <repo url>
  2. Inside the folder of the cloned repo create a directory manually and name it as you want i.e sportVU.
  3. Drag and Drop all the files you want in the sportVU direcrory.
  4. cd to Myrepo/sportVU and type git add *
  5. type git commit -m "added some files"
  6. git push -u origin master.

and you should be all set

milouk
  • 171
  • 1
  • 3
  • 11
  • I've done this and it hasn't helped. it would appear Alon is onto something above, I'm looking into his links now – Canovice Apr 25 '17 at 21:09