[beginners guide]what are Git and GitHub and why should we know about them???

[beginners guide]what are Git and GitHub and why should we know about them???

·

2 min read

In simple terms

GIT is a desktop application
GitHub is a website similar to Facebook or like other social media website where you can upload photo but In github you can upload any type of data[ you can make it public or private depending upon the type of data you are uploading] with unlimited storage

To upload any data you need to connect your destop git application with your github account

What is Repository

like we create image folder or doc folder in our PC, same we can create folder in github account which we call Repository

Create Repository

clicking on + icon on right top hand side

close a name which you want to give to your Repository/folder

you can make it private or public

and to push any data to your github repo by using your git desktop application

for example you want to push photo folder which is your c drive

cd c/photo // by this you will be in your photo folder
ls // it will list all the images name

after that you just have to follow step

git init
git add . // . to add all files or if you want to add one file you can mention its name
eg git add xy.txt// this will add xy.txt file 
git commit -m "first commit"// -m here for m
git branch -M main
git remote add origin https://github.com/username/repo_name.git
git push -u origin main

after your push your whole files are in your github repo

I hope you found the blog useful. If so, please consider sharing it with your friends. If not, I would appreciate your feedback. You can also reach out to me on Twitter at @lalitaswal2, and I would be happy to hear your thoughts