How to upload files to github from Git Bash on Windows from scratch

preview_player
Показать описание
Title: How to upload files to GitHub from Git Bash on Windows [from scratch]
Description:
In this video, we are going to learn how to upload files(source code) from windows to Github with Git Bash.

Pre-requisite:

Install git bash on your machine and launch it.

Below are the commands we are going to use to upload files to GitHub with Git Bash

ls
cd
git init
git remote add origin [gitLink]
git remote -v
git add .
git commit -m "First commit"
git push origin master

ls- List all the files in the current directory

If your source code is in the different directory, you need to change the directory on git bash with command cd followed by directory or path.

cd - To change the directory

git init- This command initializes the git in the given path. You can see the .git hidden files after this command gets executed.

git remote add origin [gitLink]- gitLink denote the place where your code is stored in the remote repository

git add .- Add all the files in the local directory to the remote repository

git commit -m "First commit"- It establishes a connection with local repository

git push origin master- It establishes a connection with a remote repository and upload your source code or files to GitHub

Note: If you get fatal: remote origin already exists which means the connection is already established.

Above method helps to push files or project folder to GitHub using the command line.

********** Tutorial Playlists **********

****** Contact me ********

******* Books written by me ********

******* Productivity tool *********

******* Gear Used To Shoot This Video ******
_Audio & Microphone

********Learning partner********

Subscribe and stay tuned!

Рекомендации по теме
Комментарии
Автор

I watched 4 videos, all hour long, and still did not get it, then I found an 8.34mins video that provided all I needed. Thanks

macazmacazz
Автор

Man the simplest git tutorials. I have watched a couple but you are the only one who explained in a simple way.

vigramarchwiz
Автор

I remember I've been taught to use this way to upload git files and forgot how to be done, then I found this video.. It's the easiest way outthere, Thank you ^^

lavalevoo
Автор

Thanks! I was stuck early in a coding course and this helped me get passed a road block!

ifitbeginsitends
Автор

Really helpful ..
I have watched many 1-2 hours tutorials before but that was all time
Simple and too the point video....
Great work thank you ❤️

praveenkumarbisht
Автор

You just save my life. I am really frustrated doing this and you just explain in such a easy way.. thank you ...😇😇

kmanju
Автор

You explained this so well that my prof. couldn't helped us with this one for weeks.

uftadeerolcay
Автор

Finally a simple and elegant video. Thanks for the info, was having a hard time trying to figure how to link our github account to git bash

avengersworld
Автор

Thanks bro that was really helpful i basically had 30min deadline to push my project into github and i came across this tutorial. Much appreciated

AK-owzn
Автор

God-send video, this allowed me to get my foot in the door with using git bash. Now I'm pretty comfortable and I prefer git bash over the GUI application. Thank you so much!

isonzo
Автор

I've been looking all over for an easy to understand tutorial like this! I am glad I found your page. Now I can get back to learning HTML and uploading my projects on my GITHUB.

tochiuzoije
Автор

Man I wish youtube allowed multiple likes per account; you are awesome! Loved your simple to follow explanations!

dominicortega
Автор

thank you soo much I am trying to upload my project from seeing different videos but I am failed and now I watched your video is actually worked it helped me a lot. thanks again :-)

rudegal
Автор

Best Git tutorial that I have seen. Easy to understand and very efficient. Thanks

foranime
Автор

great video man, it literally saved me. God from morning I have been watching different videos and trying to deploy the file, bt finally did it!

kritikasahoo
Автор

thanku so much for this video first time i worked for github.its so helpful

vivekas
Автор

Wow! This was so easy to follow and the steps worked perfectly! Not so scared of git anymore :)

nelle
Автор

Thank you so much! This was easier than all other videos!

riyanshbuktar
Автор

this was really helpfull and it was very clear!!! thankyou for this vedio

ramanis
Автор

thanks bro easiest and finest way rather than 1-2 hour of lectures again thanks a lot.

MOHITRANA-torf