2

I've got a Django Project in PyCharm. I needed to make a repository on GitHub with this project - that's why i did next - VCS -> Import into Version Control -> Share Project on GitHub. Several times due to my "noobness" i was to delete project and repository both to start over. Today i perfomed that again and to my surprise found that PyCharm didn't push all the project folders to GitHub. I tried to add files to git manually like that "git add " but there is still no result. Structure of my folder tree is simple:

ProjectName_test:
   .idea
      scopes
   products
   ProjectName
   templates

Both folders - "templates" and "ProjectName" aren't pushed to GitHub. What should i do in this situation? Is there anything behind the scenes that doesn't let those folders to be pushed?

Fred Foo
  • 355,277
  • 75
  • 744
  • 836
Aleksei Yerokhin
  • 869
  • 4
  • 9
  • 22
  • 1
    Git doesn't track empty directories. Put an empty `.gitignore` in them. – Fred Foo Sep 17 '13 at 09:03
  • These directories are not empty. Both contain all the files that created automatically when making a new Django Project in PyCharm. – Aleksei Yerokhin Sep 17 '13 at 09:12
  • i have the same problem. if i add 1 new folder and 1 new file, adding the file adds the folder. i personaly do it in terminal. cd proj_dir/folder git add . , then i push it in pycharm [*](http://stackoverflow.com/questions/16969768/what-does-git-add-git-add-single-dot-command-do) – Foo Bar User Sep 25 '13 at 12:07

2 Answers2

2

Do the folders contain anything? Empty folders are ignored by Git.

Mareen
  • 425
  • 3
  • 5
0

Which color are the files in that directories?

In case they are red that folders are not added to GitHub (you should right-click->Git->Add). In case they are green you should first commit everything that you need (did you do that (?) right-click->Git->commit file) and after that (they are black) you could push your changes (right-click->Git->Repository->Push).

Please tell if it helps.