Authentication, GitHub, Git Install git in windows and upload your project in Github
So for that, you just need to download the git base, so just go to your favorite browser and source for git base and just go to this download section and download for windows. So if you are using mac os or linux, you can use the inbuilt terminal to use the gate, but for windows you just need to download the git base which works like terminal. So once you download this executable file, just click on this file and just install this git base. So just keep everything default, just keep on pressing the next, and this will keep everything default and install the git base into your windows operating system. So once you install the git base, just go to the github, so if you havent got github account, you can just create the github account. So once you create the github account just go to this plus sign here and click on this new repository, and let me just call it demo and you can just keep this public or if you want to keep it private. You can just choose this private as well, but i will be keeping the public and just click on this create repository, so this will create the remote repository. So once you create this repository, let me create one folder here. Let me call it demo, so just type demo so inside here i will be creating one text document. Let me call it hello and click enter and write something inside here.
This is the demo for git and github, and let me save this file and let me close everything and just go to this folder and right click here and just click on this git base here, and the first step is to initialize the repository with dot. Git extension, so for that just type git init, so this will initialize this repo with dot git. So if you are not able to see this, you can just click on this view and just click on this hidden item. So this will show the dot git extension and once you do that just type git, add and dot before that. If you want to check if the file, what are the files that are available to add, you can just type git status, so you can see on the red text here. You can add this allot.text. So once you add just type git, add so now again check git status. You can see here the new file has been added, which is showing in green text. So now, once you do this, just type git commit hyphen m and just type first commit, and for the first time this will ask for the global configuration. So once you do this for the first time from next time, this wont be asking for the configuration again and again so for the first time i will be just typing: the grid, config and just type global user, dot, email and just give the email which you Have used for opening your github accounts, so i will be giving my email address here and just type gmail.
com, and also you need to give the username of your github account so just type gate, config, global user.name and the username. So i have the username 8877. So you give your username as well, so once you do this, so you can just type git commit iphone m and just type the first commit. So this is basically a message, the commit message or the changes which you have done so since we are doing it for the first time, so i have given the message first commit so once you do this, just go to this remote repository again and just copy. This remote origin line pasting here and the last step is to push into this remote repository. So for that just type gate push iphone you, origin master, and once you do this, this will ask you to authorize your github account. So just click on this sign in with the browser, so you will be shown with the window to authorize your github account. So just click on this authorize and the authentication will be success. So once you do that the file will be pushed into the remote repository. So if i just go to this demo again and refresh my remote repository here, so you can see the hello.txt has been already pushed into here, and this is pushed by this username, which we have said just before. And if i just go inside this hello.txt, you can see this text which we have written in that file.
So this is how you install get into your windows operating system and also push your work into the github account. Thank you.