How to create a github repository | How to upload project on github | Github Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Hello friends welcome to your channel in this video we will see how we could create a GitHub repository and push our code to the repository in Google we will search GitHub then click github.com link signing up and creating a new GitHub account is very easy I already have a GitHub account so I will click on sign in I will enter username and password a verification code is sent to my email ID I will enter the verification code now we are in the dashboard we could create a repository by clicking the new button on top left or in the right hand side here in the drop down we could click new repository or we could go to the profile then repositories then in the top right new button we are back in the dashboard we will click on top left new button the repository name should be same as the project name we are making the repository for for example I have a Hello World project in Android Studio which name is my application this tutorial will apply to any programming language and any development ID I am giving the name of the repository same as the project name repository would be private you could select public also in general we make private repository so that all cannot access it in the description you could write few lines about the repository for example what language about the project etc for the basic idea now we will click on create repository button and our repository is created we will go to our development IDE and will open the terminal there or you could directly use your computer's terminal in code location in the Android Studio ID I open my terminal and I writing a git command git status and getting the message not a git repos story then we will write the command git in it and getting the message initialize empty git repository again run the command git status now my codes file and folders are coming rate to add a file to the git we need to run the command git add then the file location first we should add git ignore file to the git git ignore file contains those file path which we do not need to add or push to GitHub we will write git add and then space and then git ignore file path after this on running git status command we could see do ignore file is green that means it is added to the git now we will write the command git commit DM then the message about the commit those files which we have added to git in this commit those files will be added now we write the command git add space then dot that means all files and folders will be added to the git except those which are mentioned in git ignore file on running git status command we could see all red files and folders are green to make the git added files permanent after G add command need to write the command G commit M then the message describing the commit now we will write the command git Branch SL capital M then mean to check which branch we are presently in we could write the command G Branch there are three ways we could connect to GitHub repos story to push our code or pull our code first is setup in desktop second is https and third is SSH after clicking SSH copy the line git remote add origin at the of github.com and paste it in the terminal and then press the enter command by running the command git remote B we could SE the remote URL that we have added in the GitHub repository top right corner click here then settings in the left hand side tab click SSH and GPS keys for pushing code to the repos three and pulling the code from the repos Tre for authentication purpose we need to add our laptop or computers SSS key here here one important thing to note is that if you do not remember your computer's SSS Keys corresponding passphrase then you need to generate a new SSS key and note down the corresponding passphrase passphrase is like a password by running command in the terminal you could get your computer's SSS key but you cannot get the passphrase I forgot my laptop's SSS key is corresponding pass press for that we will go to the documentation by clicking here if you remember your SSS Keys corresponding pass phrase then you could click sa for existing SSS keys I will click on Genera a new SSS key then adding it to the SSS agent here there are three documentation for Mac windows and Linux tutorial my laptop is Mac to generate a new SSS key I followed these three steps after generating the SSS key to to copy the SSS key to the clipboard I run this command after generating the SSS key I have noted down the passphrase in title write something I'm am writing key1 my own key type authentication key in key text area paste the SSS key then click add SSS key button here I am getting the message you have successfully added the key we will go to the Android Studio IDE terminal and run the command G push U origin me now asking me to enter the pass when we will type the pass phrase in the terminal it would be invisible after typing the pass phrase press the enter key and our code is post to the GitHub repos story now if we go to our repos story we could see our code post to the repos story I do some comment and then add and then commit the file and I will push the code again I need to enter the pass prace so that we do not need to enter the pass press in every push or pool we need to go to the documentation generating a new SSS key and adding it to the SSS agent section and then need to follow the documentation for adding your SSS key to the SSS agent thank you for watching this video I keep uploading videos like this regularly to keep watching my videos please subscribe to the channel and like and comment in the video
Info
Channel: Learning Coding From Basic
Views: 90
Rating: undefined out of 5
Keywords:
Id: IkaipPzQvtY
Channel Id: undefined
Length: 5min 57sec (357 seconds)
Published: Thu May 30 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.