As I find myself developing a pretty complex MVC-based CMS in PHP. I did create an “update” system but I’ve heard so much about git and SVN so I have spent a few hours trying to figure out how to do this with aptana studio.
I’m using bitbucket.org though. I added my repo thing and I go ahead and “Push” my project. It asks for my password: I type it in. Then I get the error:
error: src refspec master does not match any.
error: failed to push some refs to ‘https.//pthowsen@bitbucket.org/pthowsen/dvc5.git’
Maybe I have to use github and not bitbucket?
Anyway. Thanks in advance.
The first push needs to establish a link between your local master and a remote repo (generally called ‘origin’)
As mentioned in “Getting git working in aptana on Ubuntu“, go to a git command-line and type:
Then all your subsequent push from Aptana will work.
Note: that supposes that you have added and committed at least once.
If your repo has just been initialized, there is no commit, and no ‘
master‘ branch yet.