$ git --version
(Click on the “start” button, search for “Git Bash”. Click on it and execute the code written above.)
(Here you have to create a folder using the $ mkdir (make directory) command in your local device and after that using the $ cd(Change Directory) command change the directory into the folder you just created.)
$ pwd
$ cd
$ cd ..
$ mkdir <name of the folder/file>
$ git init
(The git init command creates a new Git repository. It can be used to convert an existing, unversioned project to a Git repository or initialize a new, empty repository.)
$ git config --global user.name "your_GitHub_username"
$ git config --global user.email "your_GitHub_email"
(Now, go to GitHub browser and click on the “+” and then on “New Repository)
(Give your Repository a unique name, And click on “Create repository”)
(You will be directed to this “Quick setup page” now copy that link)
(Now paste the copied link after $git remote origin, “$git remote origin” command will automatically create a remote connection called origin for the folder we created. After that we will check the “$ git status” to check the state of the working directory.)
$ git remote origin <the link that you copied from remote repository>$ git status
(Now we will add helloo.txt file in the folder that we created on the local device.)
(And now when we use the “$git status” command we can see a change in our local device, but this may not appear on our remote repository for now what we have to do is use “$git add .” and then all the changes will be added and after that, we will use “$git commit” to save changes on local repository)
$ git add .
$ git commit -m <"Any message">
(The last step, we will use “$git push origin master” to push all the changes to the remote repository)
$ git push origin master
(Now what you can see is the helloo.txt file that you created on the local device is now present in the remote repository)

Learn, Code and Build:)