Nonetheless, after you push your changes, refresh your page, please. git push -u origin master - pushes changes to your Github repository, in the “master” branch.Īs always, there are multiple ways to do one thing.So this is only done this first time, not when making edits in the future. git remote add origin - this command is only done when adding a new repository to your folder.git commit -m "first commit" - committing to Github with a message of “first commit”.adds all the files in the folder, the period is important git init - initializes git in your folder on your computer.These are the steps I followed once getting into the appropriate folder, where my website files are located. If you are having trouble opening your command line on your Mac computer, or getting to the folder location, please turn to the video I created. ( Pro tip: in a new terminal window, type “ cd” and then simply drag your folder into the terminal. Go to the folder where the project is stored on your computer. Step 6: Open Your Terminal and go to Project Location If you have other pages-like an about.html-that's fine. So, if you have it saved as something else, rename it to index.html. IMPORTANT: In order for your website to work on Github pages, it is very important that your primary HTML file be named index.html. And because I am on a Mac, I will be following instructions for the Mac terminal. Because using the terminal is an important part of being a developer. ![]() However, I highly recommend getting comfortable in it. And sooner is better than later.Īs you’ll notice in the official direction set, there are a few ways to get your files onto Github. Meaning you don’t have to use the CLI.īut, in my opinion, using the terminal is the fastest and easiest way. ![]() AKA the command line.ĭon’t worry about learning the command line right now if you’re just starting out. The directions above are showing how to get files on your computer onto Github using your terminal. Now, if you’re brand new, all of this may look scary. You are basically putting the files that are on your local computer into a folder on Github using git. (Again, think about it like a folder attached to your Github account.) This page is explaining how to get your files ( your HTML and CSS) into the repository. Here, wp-quiz is tied to the wp-quiz repository. Because laurencebradford is my username.Īn example project site would be: /wp-quiz/ The difference is this: you have unlimited project sites, but only one user site. When it comes to making a Github Page, there are two options: a project site or a user/organization site. Step 2: Understand The Difference Between User Sites and Project Sites If you already have an account, then log in. You’ll give your name, username, email address, and set a password. The video starts from the absolute beginning. It is perfect to watch if you are especially new to HTML and CSS.Ĩ Steps To Getting Your Site Live on Github Pagesįirst, here is the link with more information about Github Pages and setting one up: Step 1: Sign up for / Login to GitHub AccountĬreating a Github account is like signing up for Facebook or Twitter. To go along with this tutorial, I created a video to follow. Or willingness to use it in a very easy way :)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |