Github Pages app problem
-
Installed the Github Pages app Docs says
When pushing, git will prompt for Cloudron username and credentials. Any Cloudron user with access to the app can push.
but when doing that with
git remote add page https://sub.domain.tld/_git/page git push page masterI get
error: src refspec master does not match any error: failed to push some refs to 'https://sub.domain.tld/_git/page'What's wrong?
-
@yusf I think this is because you have not committed anything to the repo and thus the push fails.
-
@yusf Steps would be something like this for pushing a repo to the GithubPages app:
git remote add page https://sub.domain.tld/_git/page git add path/to/file.html (or git add -A which will add ALL files in the current dir, recursively) git commit -m "Some message about this commit" git push page master -
@yusf That query for credentials each time can get annoying very quickly.. For now, you can setup this netrc file. Please see https://cloudron.io/documentation/apps/githubpages/#publishing-pages . Coming release, we are looking into ssh based push that will bypass this non-stop password querying.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login