Method 2 (Codespaces)
If you want to modify files of Homework gitHub by GitHub Codespaces, a web-based development environment.
Step 1: Open Your Repository in Codespaces
- Go to GitHub and log in.
- Navigate to the repository where you want to upload files.
- Click the “Code” button and select “Create codespace on main”.
- Wait for the Codespaces environment to load.
Step 2: Open the File Explorer
- Once inside Codespaces, look for the File Explorer on the left sidebar.
- If the sidebar is hidden, click on the Explorer icon (📂).
Step 3: Upload Files
- Right-click inside the File Explorer.
- Select “Upload…“ from the context menu.
- Choose the files from your computer and upload them.
Step 4: Commit and Push Changes
- Click the Source Control (Git icon) 🔃 in the left sidebar.
- Type a commit message (e.g., “Added new files”).
- Click “Commit & Push” to upload the files to GitHub.