Hi all, Please note, I'm a newbie to gitweb. I have repeatedly gone over the documentation at http://docs.webfaction.com/software/git.html. The web interface seems to be working as expected. I've created a repository and enabled HTTP Push and postBuffer. I've set up my project in a local repo, but everytime I attempt to push to the gitweb repo, the outcome is:
...but there is nothing in the remote repo. I figure if I were doing something really wrong, git would yell at me, but this looks like something is breaking somewhere and I'm not sure where to find it. Any suggestions? asked 20 Jul '11, 21:29 Tony |
Does a remote branch exist, and is the local branch tracking it? If not, you will want to specify to a branch, using something like:
If "master" didn't exist already, then this creates the branch and should set up a "tracking branch" which means you can then push without specifying "master" next time. Also, for convenience, you can name "http://ibrokeit@git.pubbin.com/pubfinder.git" as a Remote; let's call it origin:
Then: If you have the option, it's often even more preferable to clone down the empty repository, add some files, and then push back:
In the future, we could just use Lastly, a common technique for a repository that already exists locally is to:
Hope that helps!
permanent link
This answer is marked "community wiki".
answered 20 Jul '11, 21:41 ryans ♦♦ Awesomeness! Adding the branch did it! Thanks so much!
(20 Jul '11, 21:51)
Tony
|