Github get link of current project in live preview - github

I upload my project to github and I want to see the project live in link.
I tried to do that with plunker but I don't see any import option.
I saw github users upload their project then they put link with 'xxxx.github.com'
(github domain) when I press it I see the project in preview live.
how can I do that?
my directory structure
in the src
github link
github link to project- shows only the background color
github link
github project

Use gh-pages.
Make a new orphan branch called gh-pages. Keep your index html page in the root directory of that branch. Your project will now be live.

Related

Why I am not able to see the the webpage after hosting it in github?

Why I am not able to see the the webpage after hosting it in github? It's just showing a url with the name in same as in Readme but does't redirect
anywhere.
screenshot
You GitHub Pages is working as expected. The only file in the repository is the README, so that is the only file built on Pages.
If you wanted to build a Pages site at myportifolio.github.io, you'd have to make a new GitHub account under the username myportifolio.
By default, github displays the "readme.md" file.
And, your repo doesn't have anything to show in particular!
Try adding a dummy ".html" file and then open the website. If GitHub can't find anything to display it will display the "readme.md" file.
Make sure you follow the steps mentioned below-
index.html is your root file.
You have changed your Github repo name at least one or two times,refresh the page & visit the page after a few minutes.

When I attempt to deploy on GitHub all I can see is the Readme file

I am trying to deploy my project on GitHub, and every time it's either a 404 error when I switch it to Docs/, or it only shows the README file.
I am uploading it on the GitHub website.
How can I see my site content?
Double-check your Publication sources for your GitHub Pages.
select the main branch
select the docs folder
Then you won't have to "switch" to docs/ when visiting http(s)://<username>.github.io (for a user site) or http(s)://<username>.github.io/<repository> for a project site, depending on the name of your GitHub repository (<username>.github.io or just <repository>)

How do I get my site to show up through github?

I uploaded my files to github, checked off readme, commit changes, selected masterbranch, and I got the following message as I scrolled down the page: Your site is published at https://tanishav842.github.io/Recipes/ but there is nothing there except for the word Recipes, which appears at the end of the site address that had been established for me through github. What did I do wrong?
Well, Tani, to have your own page hosted by GitHub Pages it need to be stored in one of the following places
In a public repository named <your-github-username>.github.io
Under a docs folder in master branch of any public repository you own
In gh-pages branch of any public repository you own
It means your Recipes repository are pretty much there.
Just copy your master branch content to a new branch named gh-pages and push it:
git checkout -b gh-pages
git push -u origin gh-pages
In addiction, as commented Edric, it would be cool to have your pretty nice stuff added to your page.
By now, I suppose GitHub is using your README.md that just have the word Recipes there!
Anyways, Here you can find a bunch of details about Working with GitHub Pages and also some step-by-step tutorials to learn how to do it properly
Hope this can help you!
Hosting a site is better supported by the GitHub application. Try following these steps to see if they help:
Download either GitHub for Mac or GitHub for Windows, depending on your operating system. Open the app and log in using the account you just created.
(On Mac): After you login, click advanced and make sure that your name and email are correct. Then, click "Install Command Line Tools", just in case you want to start using the command line later in life.
Create a new repository in your GitHub application. Name it your-username.github.io. The name is very important. Note the folder that GitHub is saving the repository to. Make sure the "Push to GitHub?" box is checked.
Move your website's files into the folder that GitHub just created when you made the repository. IMPORTANT: Your homepage HTML file must be called "index.html", and it must exist in the top-level directory.
Back in the GitHub application, you should see your files in the left column. Make sure they are all checked. If so, enter a message in the text box called "commit summary", something like "initial commit." Then, click the commit button.
Click the "Publish repo" button in the top right corner.
Give it about 10 minutes, then check your-username.github.io. Your website should be there!
Here's the reference link:
https://gist.github.com/TylerFisher/6127328

Change the default opening file github pages

So i create a simple test repository https://github.com/mugas/imdb/.
The branch is gh-pages and I have an index.html file but it still opens the readme.md file instead. How can I change it to open the index.html?
Thanks
Github Pages does not effect your normal repository page. It effects your github.io page.
You'll want to read the Github Help for Pages Basics and the instructions for Configuring Github Pages.

How can I upload a website with GitHub.io?

I know we are allowed a .github.io domain, but how can I upload my website there?
I have made a website with HTML/CSS/Jquery/Bootstrap... in the WebStorm IDE by Jetbrains, but I am unable to upload this to github properly? How can I upload my website properly? The website has external images and everything else too. How does this work? img of files
You "upload" it in a git repository on github. It's all detailed on https://pages.github.com/
On GitHub, you need to make a new branch called gh-pages. This will make a page for your project if you navigate to yourusername.github.io/project
You'll have to go to the Settings of that Repository to activate your Project's Page. GitHub will also confirm the Project's webpage address.
This is what it looks like
https://pages.github.com documents the process for using the yourusername.github.io domain
EDIT: You don't need to make a new branch! You'll still need to go to Settings and setup GitHub pages from there.