Install Git in Ubuntu 20.04.02 LTS, 21.04 (Linux) and Push/Publish your work in Github || ArjunCodes

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys what's up welcome back to another video so in this video i'm going to show you how to install git into your ubuntu operating system and also i'll be showing you how to publish or push your work into the github so for that just open your terminal and just type git so if it says something like command git is not found so git is not installed into your ubuntu operating system so to install git just type sudo apt install and git and enter your password and just type y and click enter so this will basically install git into your ubuntu operating system so now the git has been installed to check if git is not installed or not just type git version so you can see here it shows the git version so git has been installed so now the next thing what i need to do is i want to open the github account so just go to this github.com and just click on this sign up so if you have already got github account so you can just sign in so it shows some welcome message here and just type your email address so in my case it's also gotham 8877 gmail.com and click on continue so create some password and click on continue so you can put some unique username here and click on continue and type y and click continue so it's asking for some puzzle to solve so click on start puzzle and it's asking to pick the squirrel galaxy so click on this one and this one so just click on this create account so this will ask for some code so just go to your gmail and if i go here so you can see this code here so let me copy this code and if i just go here and paste it here so now the github account will be created so if i just click here and if i just click here so it shows the username which i have just created so now what i want to do is i want to create one repository here so for that just click on this plus sign and click on this new repository and just type some name here so give the repository name so something like website or you can write other repository name as well and let me give some description here demo for git tutorial or you can give any description you can keep this public or private as a wish and just click on this create repository so now the next thing what i need to do is let me create one folder here so click on new folder and let me call it website so inside here i want to create one file so for that just open terminal and just type touch hello dot txt and click enter so this will create the file inside here so let me write something inside here so let me write something like this is origin codes and save this file so basically what i want to do is i want to push this file into this repository inside website so for that what i need to do is i need to go to this folder here and just right click and open in terminal and just type git init so this will basically initialize with dot git extension so if you are not able to see this dot git just go here and type control ads so this will so or hide the hidden folders so just type control as to so ctrl s to hide and the next thing is i just need to go here and just type the git status so this will basically show what are the file available to add so you can see in the red text here so if you want to add the specific file you just need to give the name but i want to add all so that you can just type dot so this will add all the files inside here and now the next thing what i need to do is if i just type git status here so it's showing in green text so it means that hello.txt has been added now i need to write git commit iphone m and give some message first commit so if i just type enter this will ask me for email and username so here we need to give the user email and username so for that just type git config and global user dot email so just type the email which you have used for opening your github account 8877 at the gmail.com and click enter also we need to give the username so just type git config global user dot name and just give the username of your github origin gotham 8877 in my case so just keep your username and so to check if the user email and username has been configured or not just type git config and user dot name so it will show my username and also similarly you can just type email and it will show the email here now if i just type the same command so this will be committed so just type the same command so for that just type git commit hyphen m and just type first commit or you can give any message here so now it shows that one file has been changed and two insertion and create more and it has committed so now what i need to do is i need to configure the remote origin so just copy this path here from here and copy and paste it here so just paste it here and if i just click enter so the remote origin has been added and now i need to push this one so just type git push hyphen new origin master and it will ask for username just type your username 8877 in my case and it will ask for the password as well so just type your password and now this will push the file into this repository so if i just go to this browser and refresh here so you can see here this file has been added and it's added by this username and if i just click inside this hello so it shows the text which we have given inside here so you can see here this is origin quotes and if i just go here so this is also showing the this is also in codes so this is how you install git into your ubuntu operating system and also push your work into the github thank you so much for watching don't forget to like and subscribe my channel
Info
Channel: Arjun Codes
Views: 3,015
Rating: 5 out of 5
Keywords: git, github, programming, linux, ubuntu
Id: _kAV059yZ_s
Channel Id: undefined
Length: 7min 10sec (430 seconds)
Published: Sun Jun 27 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.