DEV Community

How to push files with git to github

JOSH-360 on March 22, 2020

Hi guys! I have been finding it difficult using git to push to github, but today i have been able to link both... I need help pushing my files to github with git

Collapse
 
roelofjanelsinga profile image
Roelof Jan Elsinga

First you'll need to stage your files, which means you select the files you want to upload. If you want to select all, use this:

git add .

The you'll need to make a commit to describe what you've changed:

git commit -m "This is what I changed"

Then finally you can upload everything to GitHub:

git push origin master