Retaking WDD130 at BYU-Idaho

If you are retaking WDD130, please follow these instructions to set up your computer:

  1. Go into GitHub and rename your repository to include "wdd130" and add something descriptive like old or previous such as "wdd130-old". This image shows the entry box and it is found in the repository settings tab / General menu at the top.

    GitHub rename repository

    Once you have typed the new name, click "Rename" button.

  2. Rename the folder on your local computer from wdd130 to match what you renamed the repository to. How you do this will depend on your operating system.

  3. There is one of three things you can do at this point:

    • Delete the local repository folder and re-clone the renamed repository from GitHub.
    • Edit the .git/config file in the renamed folder to point to the new repository name.
    • Use the git command line to set the new URL for the renamed repository.

    Here are the instructions for the last two options:

    Editing the .git/config file

    Open the .git folder inside the renamed local repository folder. Inside that folder is a file called config. Open that file in a text editor such as VSCode or Notepad.

    Find the line that starts with "url = " and change the URL to match the new repository name on GitHub.

    VSCode showing the .git/config file line to edit

    You can get the new URL by opening the repository on GitHub and copying the URL from the address bar and add .git at the end like the image above.

    This process will allow you to keep the old code in sync with GitHub.

    Using the git command line to set the new URL

    Open a terminal in VSCode. On Windows you use Ctrl+` and on a MAC you use ⌃` or you can use the menu option VIEW - Terminal.

    Once the terminal is open, type the following command, replacing the NEW-URL with the new repository URL:

    git remote set-url origin NEW-URL

Now continue with the rest of the setup instructions found at https://byui-cse.github.io/wdd130-ww-course/week01/setup-github.html#create-repo Step 2. This link will take you directly to Step 2