🍴 Forking Repositories Guide ============================= .. note:: **What is Forking?** 🎯 Forking a repository is essentially creating a copy of someone else's GitHub repository on your own personal GitHub account, where you can then make all the changes you want! In our case, we provide you with starter code in these repositories, which you will then fill in to complete the lab assignments. .. warning:: **Prerequisites** ⚠️ Before you begin, you **must** have already set up your SSH keys as described in the `GitHub SSH Setup Guide `_. .. raw:: html

🚀 Let's Get Started!

Follow these 4 simple steps to fork your first repository and start coding!

Step 1: 🍴 Fork the Repository ------------------------------ .. raw:: html
📋 Instructions:
  1. Open the URL for the GitHub Repository in your browser (the URL should be in the lab instructions)
  2. Look for the Fork button at the top right of the repository page
  3. Click the fork icon to create your own copy
.. image:: forking_imgs/create_fork.png :alt: Create fork button on GitHub :align: center :width: 80% Step 2: ⚙️ Configure Your Fork ------------------------------ .. raw:: html
💡 Pro Tips:
.. image:: forking_imgs/make_repository.png :alt: Repository configuration window :align: center :width: 80% Step 3: 🔗 Get the Clone URL ---------------------------- .. raw:: html
🎯 What to Look For:
.. image:: forking_imgs/copy_link.png :alt: Copy SSH clone URL :align: center :width: 80% Step 4: 💻 Clone to Your Local Machine -------------------------------------- .. raw:: html
🖥️ Terminal Commands:

Open your terminal and run these commands:

.. code-block:: bash :emphasize-lines: 1,3 git clone cd code . .. raw:: html
📝 What Happens Next:
  • The repository will be downloaded to your local machine
  • All your changes will automatically sync back to your forked repository
  • VSCode will open with your project ready to code!
.. image:: forking_imgs/terminal_command.png :alt: Terminal commands for cloning and opening in VSCode :align: center :width: 80% .. raw:: html

🎉 Congratulations!

You have successfully learned to fork repositories! You'll use this procedure for completing all your lab assignments. Happy coding! 🚀

.. tip:: **Next Steps** 💡 - Start working on your lab assignment - Make commits as you progress: ``git add .`` → ``git commit -m "Your message"`` → ``git push`` - Submit your work when complete!