/github-for-non-tech

How to upload PDFs or other files to GitHub?

Learn step-by-step how to upload PDFs and other files to GitHub using the web UI or Git command line. Discover tips for commit messages and file organization.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free No-Code consultation

How to upload PDFs or other files to GitHub?

 
Step 1: Prepare or create your GitHub repository
 

Before uploading any files, you need a repository on GitHub. You can create a new one or use an existing repository.

  • Open your browser and go to https://github.com.
  • Sign in or sign up for a free account if you don’t have one.
  • Click the “New” button next to “Repositories” in your dashboard.
  • Enter a repository name (for example, my-documents), optionally add a description, and choose public or private.
  • Click “Create repository.”

 
Step 2: Choose the upload method – Web UI or Command Line
 

GitHub offers two main ways to upload files:

  • Using the GitHub web interface (easiest for single or small files).
  • Using Git on your local machine (better for multiple files or regular workflows).

 
Step 3: Upload files via the GitHub web interface
 

This method is ideal if you just want to drag and drop one or a few PDFs, images, or other files.

  • Navigate to your repository on github.com.
  • Click the Add file dropdown, then choose Upload files.
  • Drag and drop your PDF (or other files) into the upload area, or click “choose your files” to browse.
  • Wait for the upload to finish. You’ll see your files listed.
  • Scroll down to the “Commit changes” form:

Commit message: Add project PDF
Description (optional): Uploading the project documentation PDF file.
  • Make sure Commit directly to the main branch is selected (or choose a new branch).
  • Click Commit changes.

Your PDF is now part of the repository. You can click the filename to view it directly in the browser.

 
Step 4: Upload files using Git on your local machine
 

This method uses the command line to manage files in bulk and track changes.

  • Install Git if you haven’t already: download from https://git-scm.com/downloads and follow the installer instructions.
  • Open a terminal (Command Prompt, PowerShell, Terminal.app, etc.).
  • Clone your repository to your local machine. Replace username and my-documents with your details:

git clone https://github.com/username/my-documents.git
  • Navigate into the repository folder:

cd my-documents
  • Copy or move the PDF (or other files) into this folder. For example, on macOS or Linux:

cp ~/Downloads/myfile.pdf .
  • Stage the file(s) for commit:

git add myfile.pdf
  • Commit the changes with a meaningful message:

git commit -m "Add myfile.pdf documentation"
  • Push your commit to GitHub:

git push origin main

Replace main with your default branch name if it’s different (for example, master).

 
Step 5: Verify the upload on GitHub
 

Once the push completes or your web UI commit finishes, return to your repository page on GitHub:

  • Refresh the page if necessary.
  • You should see your newly uploaded PDF or files in the file list.
  • Click the file name to view it in the browser or get its URL for sharing.

 
Additional tips and best practices
 

  • If you upload large files (>100 MB), GitHub will reject them. Consider using Git Large File Storage (LFS): git-lfs.github.com.
  • Keep your repository organized by creating folders (directories) and uploading files into relevant subfolders.
  • Use descriptive commit messages so others (and your future self) can understand why files were added or changed.
  • Consider adding a .gitignore file if you have temporary or machine-generated files you don’t want to upload.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022