I just can't understand why such an easy looking stuff is not written anywhere... So I'm struggling to create a branch on a remote GitStack repository. I've looked over dozens of web pages and found countless recommendations, but any of those I'm trying, I always end up with the "fatal: not a git repository (or any of the parent directories): .git" error message. I created an empty repository in GitStack using the web interface. So far my best try was:
git clone http://abc.def.ghi.jkl:9876/TestRepo.git
This told me that I've cloned an empty repository. Then I've tried to push a branch:
git push remote http://abc.def.ghi.jkl:9876/TestRepo.git
And for this I received the error message every single time. So the basic problem: I can't push my project to the Git repo because there exists no branch. But I can't even create a breanch. Any constructive idea where I went wrong?
You first have to commit changes locally before you can push them.