Skip to content
Leo edited this page Oct 13, 2025 · 1 revision

Set up Repo

  1. Create new repo in GitHub (from browser)
    1. -> Repositories / New
  2. Add your first file to your repo (from browser)
    1. "Add file" / "+Create new file"
    2. Name file "index.php"
    3. Add code & commit changes
<?php
  echo "Hello, World!";
?>

Clone Repo

  1. In GitHub client: File / Clone repository
    1. Choose Repo
    2. Define local path
    3. Clone

Connect XAMPP to local path

  1. XAMPP Control Panel: Apache / Config / Apache (httpd.conf)
  2. Adapt directory in following two places:
DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">

Tip: Use /forward slashes/ in file paths (even on Windows)

Run app

  1. Start XAMPP
  2. Open page in browser: http://localhost/
    1. This shows the standard XAMPP welcome page

Work with IDE

  1. Start VS Code
  2. Open local directory: File / Open folder...
  3. Make change to index.php
  4. Save changes & refresh browser to see changes

Equip IDE with Git

  1. Download Git for Windows: https://git-scm.com/downloads/win
  2. Install Git for Windows
    1. Option: "User Visual Studio Code as Git's default editor
    2. Use all standard settings

Push first change

  1. Ctrl+Shift+G (Source control)
  2. Commit (with message)
  3. Sync (Push)
  4. Check in GitHub browser
Clone this wiki locally