DirectoryEasy
  • Non-developers
    • Setting Up Your Development Environment
    • Setting Up GitHub
    • Vercel Deployment
    • Domain Setup
  • Developers
    • Get Started
    • Configuration
      • Main
      • Database
      • Sections and categories
      • Emails
        • Cron Jobs
      • Claudinary
      • Upstash Redis
      • OAuth with Google and GitHub
      • Google Analytics Api
      • Stripe
        • API keys
        • Stripe Webhook
      • AI
    • Landing page
      • Header
Powered by GitBook
On this page
  • 3. Clone the Project Repository
  • 4. Create Your GitHub Repository for Deployment
  1. Non-developers

Setting Up GitHub

PreviousSetting Up Your Development EnvironmentNextVercel Deployment

Last updated 5 months ago

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.


2. Link VS Code to GitHub

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. Go to Create a Repository.

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

  3. Important: Select Private for the repository.

  4. Click Create Repository.


5. Link Your Project to Your GitHub 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.