Building a Tetris game in vanilla JavaScript, HTML and CSS
- Create repository in GitHub and give it a relevant name.
- Click on your repository to open it.
- Find the “settings” tab and click on it.
- Scroll down until the “GitHub Pages” sections.
- Under the “source” drop down menu, choose a branch. I chose “master branch” and select it.
- You will then see a URL to your live webpage. In my case the URL is https://github.com/sctlcd/js-tetris-in-progress
Back to top
- Again, click on the repository called JS Tetris
- Along the top bar, find the “clone or download” button.
- Here you have the option to clone by HTTPS or SSH.
- Once you have chose your desired option, then click the copy icon next to the URL.
- Open Git Bash.
- Ensure you are in the correct directory which you want to copy the code into. If not, change the directory.
- In the terminal, write
$ git clone https://github.com/sctlcd/js-tetris-in-progress.git
- Press the enter button and your clone will be created.
Back to top
Back to top