This repository was created as part of a tutorial to learn the basics of using Git and GitHub. It will guide you through the following steps:
- Create a new repository on GitHub called
hello-world
. - On your machine, open the terminal and navigate to the folder where you organize your studies.
- Clone the
hello-world
repository to your machine in the chosen folder. Run the following command in the terminal:
git clone https://github.com/your-username/hello-world.git
Replace your-username
with your GitHub username.
- Create a file named
hello-world.js
and open it in a code editor. Add the following code to the file:
console.log("Hello World");
Save the hello-world.js
file.
- In the terminal, navigate to the repository folder using the
cd
command. For example:
cd path/to/hello-world
- Execute the
hello-world.js
file in the terminal using thenode
command:
node hello-world.js
You should see the message "Hello World" printed in the console.
- In the terminal, run the following commands to commit the changes:
git add .
git commit -m "Add hello-world.js file"
- Push the commit to GitHub:
git push origin main
Verify if the changes appear on your GitHub repository.
If everything worked correctly, congratulations! You can proudly show your beautiful GitHub repository to your mom.
Feel free to explore, experiment, and have fun while learning Git and GitHub!
Student: Suellen Priscilla de Camargo
School: Cubos Academy
Thank you for checking out this repository! If you have any questions or feedback, feel free to reach out. Happy coding!
License This project is licensed under the MIT License.