Setting Up GitHub

1. Create a GitHub Account

  • If you don’t already have one, create a GitHub account at GitHub.

  • Provide me with your GitHub username so I can invite you to the project repository.


To connect VS Code to GitHub, watch this video 2-minute video.


3. Clone the Project Repository

  1. Create a Folder: On your computer, create a folder where you want to store the project files.

  2. Open the Folder in VS Code: Open the folder in VS Code by navigating to it in the File Explorer or dragging it into the VS Code window.

Open the terminal in VS Code (see instructions above) and run the following commands:

  1. git clone <repository-link>
    cd <folder-name>

    Replace <repository-link> with the link I provided and <folder-name> with the name of the folder containing the project source code.


4. Create Your GitHub Repository for Deployment

  1. Enter a name for your repository (e.g., your directory name).

  2. Important: Select Private for the repository.

  3. Click Create Repository.


  1. Open the terminal in VS Code and run the following commands:

(Replace <new-repository-URL> with the new repository URL you've just created )

git remote set-url origin <new-repository-URL>

After that, run the following command :

 git push -u origin main

6. Verify the Setup

Refresh your GitHub repository page. You should now see your project files uploaded successfully.


Last updated