IN 10 EASY STEPS, UPLOAD YOUR PROJECT ON GITHUB USING GITBASH TERMINAL

IN 10 EASY STEPS, UPLOAD YOUR PROJECT ON GITHUB USING GITBASH TERMINAL

ยท

2 min read

This article provides a step-by-step graphical demonstration of how to use the Gitbash shell to publish your projects to GitHub.

As I always say, If you only read/watch along without any practice, you can never become a pro at doing things. However, doing a task repeatedly makes you better.

Lets get right into it!

1. First of all, login to your Github account, and go to the repository section.

step 1.png

~ Click on the "new" button to create a new repository

step 2.png

~ Type in the name of your repository

step 3.png

~ Click on 'Create repository' button step 4.png

~ What you should see if you have done all these correctly

step 8.png

~ Copy the https link of the repository.

2. Open your gitbash terminal and create a new folder with the command mkdir "name of folder"

step 5.png

3. Ensure you are in the folder of the new repo using the 'cd' command.

step 6.png

4. Initialize the repository using 'git init' command

step 7.png

5. Remember the https link we copied earlier, yes, that one. use it with this command "git remote add origin (the url link)"

step 9.png

6. To confirm if the fetch and push are working, type in "git remote -v"

step 10.png

By the way, I added html, css and javascript files.

DEMO FILES.png

7. Add all the files in your project using the 'git add .' command

step 11.png

8. Commit all files that have been added using git commit -m "Initial commit". "Initial message" is just a message. You are free to use whatever message that describes the changes made to your code.

step 12.png

9. After commiting all files, use the 'git push origin main' to push the changes.

step 13.png

10. Finally, Refresh your github page. If you can see all your files committed, then you are good to go!

~ This is what you should see on your github page after reloading

step 14.png

I hope you joined me in pushing your codes to github using gitbash terminal. Let me know how it went in the comment section and leave any questions if you have any. They will be attended to.

Happy coding ๐Ÿฅ‚

ย