Link Search Menu Expand Document

How to add documents to GitHub Pages?

There are two options for adding documents. First, you can add the file in your workspace in Visual Studio Code. The second option includes adding documents in github.com.

Option one

  1. Open Visual Studio Code.
  2. Click File on the navigation bar, and Open Workspace.
    workspace
  3. Open the workspace you want to add file to.
  4. Drag the created file into the workspace.
  5. Open GitHub Desktop.
  6. Open Changes tab and verify if the file uploaded.
  7. Write a summary in the Summary field.
  8. Click Commit to main.
  9. Click Push origin.

Option two:

  1. Go to this website and log in.
  2. Navigate to the main page of the repository.
  3. Above the list of files, using the Add file drop-down, click Upload files.
    upload
  4. Drag and drop the file or folder you want to upload to your repository.
  5. At the bottom of the page, type a short message that describes the change you made to the file.
  6. Below the commit message fields, decide whether to add your commit to the current (main) branch or to a new branch.
  7. Click Commit changes.

Back to top

This documentation is part of the reference materials for the Technical Communication course at Vistula University (Warsaw).