问题
I created my first repository with GitHub but when I try to google it, its not listing RoboSpice-Extn-Retrofit-Tutorial
EDIT
I don't know how long it will take. On the other hand anyone can take a help of Google Webmaster, this would solve your problem in minutes :)
回答1:
That repo seems to have been created less than an hour ago.
Give Google a little time to parse the new repos, and it should show up.
Note that it is referenced by GitHub search already:
https://github.com/search?utf8=%E2%9C%93&q=RoboSpice-Extn-Retrofit-Tutorial
As the OP used the Webmaster Tools to submit its url, the repo is now indexed in Google.
Update 2019: the section "Enabling GitHub Pages to publish your site from master or gh-pages" is now (since 2014) more precise:
To select
master
orgh-pages
as your publishing source, you must have the branch present in your repository.
If you don't have amaster
orgh-pages
branch, you can create them and then return to source settings to change your publishing source.
Once the correct branch is created/populated, and selected as the publishing source, the Google indexing seems to be very quick.
回答2:
This is how I managed to get at least my github pages-page to be found on Google:
- go to google search console https://search.google.com/search-console/
- add new "property" with "URL prefix" as suggested
- add the meta tag on your github-pages site (html-head) as described, looks like
<meta name="google-site-verification" content="...">
- paste your page URL to the "search bar" on the top of the search console and press
<Enter>
. Important: use full path to page, including the .html page, e.g.https://<user>.github.io/<your repo>/demo/index.html
- Click on "request indexing"
I first only did points 1-3 with the URL https://<user>.github.io/<my-repo>/demo/
and the page still did not show up after waiting for a month. However after doing points (4) and (5) my github-pages site immediately showed up in the Google search results.
edit: one day later also the github repository showed up on Google search (but maybe only because I link the original repository in my github-pages site).
回答3:
If you give some time to Google it will reflect in google search
Make sure to use better key words in your github ReadMe and title,tags of repo to make it more visible
See this for an Example:
https://github.com/anupama513/Tk102-gps-data-parser-nodejs-server
回答4:
When GitHub auto-generate your page, you get only the _config.yml
file and not the html files. So if you want to keep the default page and not write html yourself, you have to:
- Find the original template from the theme's repository, for the slate theme the template is https://github.com/pages-themes/slate/blob/master/_layouts/default.html
- Create a folder named
_layout
- Create a file called
_layouts/default.html
- In the
default.html
copy and paste the contents of the template - Follow klues post and generate your
<meta name="google-site-verification" content="...">
tag - Add the meta tag to
default.html
来源:https://stackoverflow.com/questions/26199705/github-repository-not-listing-in-google-search