/github-for-non-tech

How to upload files to GitHub?

Learn how to upload files to GitHub with our simple step-by-step guide: create accounts, repositories, clone, add, commit, and push changes.

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 files to GitHub?

 

Step 1: Create or Sign In to Your GitHub Account

 

Before you can upload files, you need an active GitHub account.

  • Open your web browser and navigate to https://github.com.
  • If you already have an account, click “Sign in” and enter your credentials.
  • If you don’t have an account yet, click “Sign up” and follow the on-screen instructions:
    • Choose a unique username.
    • Enter a valid email address.
    • Create a secure password.
    • Verify your email address when prompted.

 

Step 2: Create a New Repository on GitHub

 

A repository (or “repo”) is where your project’s files will live.

  • After signing in, click the “+” icon in the top right corner.
  • Select “New repository.”
  • Fill in the repository details:
    • Repository name: Choose a concise, descriptive name.
    • Description (optional): Describe the project briefly.
    • Public/Private: Decide whether others can view your repo.
    • Optionally, add a README file to initialize the repo.
  • Click Create repository.

 

Step 3: Clone the Repository to Your Local Machine

 

Cloning creates a local copy so you can work on files offline.

  • Navigate to your new repository page on GitHub.
  • Click the green Code button and copy the repository URL (HTTPS or SSH).
  • Open a terminal (macOS/Linux) or Git Bash (Windows).
  • Run the following command, replacing REPO-URL with the URL you copied:

git clone REPO-URL
  • This creates a folder named after your repo in the current directory.
  • Enter the folder:

cd your-repo-name

 

Step 4: Add or Create Files Locally

 

Now that you’re inside the cloned folder, prepare the files you want to upload.

  • You can create new files or copy existing ones into this directory.
  • For example, to create a new file named example.txt:

echo "Hello, GitHub!" > example.txt
  • Verify the files are present by running:

ls

 

Step 5: Stage Your Changes

 

Staging lets Git know which files you want to include in the next commit.

  • To stage a single file, run:

git add example.txt
  • To stage all changed files at once, run:

git add .

 

Step 6: Commit Your Changes

 

A commit records a snapshot of your staged changes.

  • Use a descriptive commit message:

git commit -m "Add example.txt with greeting message"
  • You can view your commit history with:

git log

 

Step 7: Push Your Changes to GitHub

 

Pushing sends your local commits to the remote repository on GitHub.

  • Ensure you’re on the correct branch (usually main or master):

git branch
  • Push your commits:

git push origin main
  • Replace main with your branch name if different.
  • After the push completes, refresh your GitHub repo page—your files will appear online.

 

Step 8: Upload Files Directly via GitHub Web Interface (Alternative)

 

You can also upload files without using Git on your machine.

  • Navigate to your repository on GitHub.
  • Click the Add file button and select Upload files.
  • Drag and drop files into the upload area or click choose your files.
  • Optionally, enter a commit message at the bottom.
  • Click Commit changes to upload.

 

Congratulations! You’ve successfully uploaded files to GitHub.

 

Replace filenames, branch names, and messages as needed for your specific project.

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