DEV Community

JOSH-360
JOSH-360

Posted on

How to push files with git to github

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

Top comments (1)

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