Let's code this 💪
Follow these steps to start developing locally on this repository!
-
Fork the repository using the "Fork" button on the top-right part of the page.
-
Once the repository is forked, clone it by running the following command in your terminal:
git clone git@github.com:<your-username>/github-demo.git
- Make sure you're in the directory of the project
ls
The response should have these contents
If you don't see that, then you'll need to navigate to the correct directory/folder
cd github-demo
then ls
to check again to verify your directory looks like the above image
- Set this repository as a git remote:
git remote add upstream git@github.com:STEM-ENRG/github-demo.git
- Open the html file in your browser
open index.html
This command should open in a browser
- Create a new branch:
git checkout -b <your-branch-name>
-
Add your changes in the index.html and add a html file in the your-turn directory (there additional comments in the code to help you with this)
-
Add and commit your changes
git add .
Then:
git commit -m "added my changes"
- Push to your forked repo:
git push -u origin <your-branch-name>
Ex. if your branch name was tiffany
Then you would type:
git push -u origin tiffany