-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Github configuration question / problem #857
Comments
I think the problem is related to the directory's remote being incorrectly set to I think this because @jr0cket suggested that someone else run
But according to his post, my results should be something like this:
So how do I 'fix' my .git file? Or is this indicative of another problem? |
just a quick fix of your git problem (don't know if it helps with your deploy problem)
This will add another remote repo, as you can verify with git remote -v. origin will still be there. you could delete it with git remote remove origin, but you should not. |
This is a silly question, but did you do Unless you are versioning your hexo project (I version my hexo project), then you would only have a To version your hexo project you would have:
To deploy the static content created by
When you run I suspect that the following output for the
I suspect this because your Please confirm
At no point should you need to run If you have 2 factor authentication switched on in your Github account as I do, you may need to do the following:
See my article on pushing to Github pages for more context around the above issue I hope this makes sense. If not, please specify where I have not explained myself well enough. Thanks |
@jkuetemeier & @jr0cket - First off, thank you both for responding so quickly! @jkuetemeier - I knew there was a command, but I wasn't sure what it was. That looks right. At this point, if @jr0cket - think some of my previous problems and anomalies were actually because of my previous attempts. I have been using Sublime to edit my files. I open the entire working directory in Sublime. I believe Sublime was somehow 'fixing' content for me after I deleted and recreated my working directory. I had a file with a pretty unique name (i.e. the file is definitely not created during the Most recent attemptHere's what I've done (sans early morning typos: Terminal:
_config.yml
Terminal:
Result (expected based on your comments):
_config.yml
Terminal:
Result (also expected based on your comments; just wanted to verify):
Terminal (I had not done this on my previous attempt):
Result (again, expected):
Terminal:
Result:
Terminal (having seen this on some of my previous attempts, I knew that a clean would fix this):
Result:
Terminal:
Result:
Terminal:
Result (still in parent directory):
Terminal:
Result: Terminal:
Result:
Terminal (I don't know enough git to do anything else with the previous info. The only git troubleshooting command I know at this point is
Result:
Terminal (I don't think I have two-factor authorization, but on the chance that I did, and that it might create a working tree, I followed your steps on pushing to Github pages):
Result:
My overall comments and questions:
|
Maybe you can try to remove deploy:
type: github
repo: git@github.com:metasean/metasean.github.io.git |
Here's the jist of what I did after I recovered, and the results: _config.yml:
Terminal:
Result:
I also changed the _config to the following:
But got similar results (including prompts for username & password):
This definitely seems like the right track, but I'm still missing something. |
You can either send through some more information as described below in the diagnose the problem section, or you can use a suggested fix
Run the following commands in the
1 - Delete your 2 - Delete the 3 - Edit the
4 - Run the following hexo commands from the
You should be prompted for your Github username and password 5 - Keep your fingers crossed. If it doesnt work then run the following commands from the
You are prompted for a username and password because you are using a secure protocol
|
@jr0cket - We have lift-off! 🚀 Thank you for the explanation on the difference between
Thank you's again to @jkuetemeier, @jr0cket, and @tommy351 for helping me get up and running!!! And a special thanks to @tommy351 for starting such an awesome node.js blogging framework and making it open source!!! |
@tommy351 |
Why are hexo clean and hexo generate not automatically done at the beginning of the hexo deploy? (Not complaining, just trying to understand.) cannot agree more! |
Trying to setup the local page for our hacker space results into:
_config.yml:
|
it works now, I guess the .nojekyll file was missing, and subsequently introduced errors while debugging. this post is helpful how to deploy http://stackoverflow.com/questions/27399219/repo-setup-for-hexo |
I'm trying to set up a hexo blog for my github pages, but nothing I have done has worked. As a final test I did the following.
hexo init metasean.github.io
(everything looks good)cd metasean.github.io
npm install
(everything looks good)with
hexo deploy
The terminal message returned is:
I've been through the online docs and I'm not seeing any other deployment settings that must be changed in order to deploy to Github. Please help; what am I missing?
The text was updated successfully, but these errors were encountered: