Logo

dev-resources.site

for different kinds of informations.

How to push your files from your local environment to Github

Published at
11/20/2024
Categories
github
git
devops
tutorial
Author
Wisdom Benson
Categories
4 categories in total
github
open
git
open
devops
open
tutorial
open
How to push your files from your local environment to Github

• In this tutorial, I will be teaching you how to:

Download Git

Configure your git

Work with the configured environment

Clone your github repo.

Push to Github

Let's begin.

Step 1: Download Git

Use this link - (https://git-scm.com/downloads) to download Git.

Step 2: Configure your git

Give your Git a Name & Email.

Image description

Step 3: Work with the Git environment.

• Make a directory & change the directory to what you created (Give it any name)

Image description

• Initialize a git branch

Image description

• Create a file

Image description

• Add contents to the file you just created

Image description

Step 4: Clone your github repo

• Sign in to your github & create a new repository

Image description

• Copy your repository code

Image description

• Clone the repository to your git

Image description

Step 5: Push your File to Git

Image description

• Commit the Git (You can also add a message to the commit by inputting '-m' then the message)

Image description

• Now push your file to Github. NB: You will be asked to login your github acct to authorize access.

Image description

Image description

• Your File has been successfully pushed to Github

Image description

Image description

Get your file link from Github & View your code on a browser

Image description

• If you don't see the link immediately after saving, refresh the browser

Image description

Congratulations on pushing your Git File to Github 🎉

Featured ones: