-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refusing to fetch into current branch refs/heads/master of non-bare repository #26
Comments
I had the same problem. In my repo I had only the gh-pages branch. What I did was create and checkout the master branch and execute the See the difference between the branches: |
hi, @leodido, sorry for the delay in responding. (looks like I messed up again last time I messed with my notification settings.) You are correct that the error is because you are on master while deploying to master; the script doesn't expect that. I'm guessing you're working in a separate repo with the source files and only using the GitHub pages repo to deploy the production files. The script is designed on the assumption that you are working in a clone of the remote repo, so that the deploy branch exists in both repos with the same name. I suppose your use case could be supported if we allowed the deploy branch to be specified as a local / remote pair, like in the git push command, but I can't promise I'll ever get around to implementing that. |
Note for future Googlers, I ended up with this error when i tried to That caused the error described here, trying to |
I also face the same problem this answer clear all the doubt |
The following command
gives the following error
Any idea?
I think it depends on the fact that I'm pushing to the master branch (of another repository) while I am on the master locally.
The text was updated successfully, but these errors were encountered: