Listen as audio
How to create GitHub account? and How to create a repository in GitHub? Such doubts arise in the beginner’s mind. So in this blog, I’m going to solve all your doubts.
What is Github?
GitHub is an open-source community. It allows collaboration with any developer all over the world. So basically every developer uses GitHub for creating a project like they can involve code and committing changes. It’s a safe place where you can save your project files and also you can maintain the versioning. This is a very good web-based platform where all team members can update and track their work so the project stays transparent and on scheduled time.
How to create github account step by step
The GitHub Account creation is much similar to other web-based applications. So let’s create a GitHub account. You need to connect to the GitHub site. Just click on the link below and register yourself on GitHub.
Nothing much you have to do. After the activation, it will redirect you to something like the page below. So you just choose the option that matches your profile and now you are ready to save your application code on your own GitHub account cheers!!!!.
Your Git account is now created. We will now install the Git tool on our machine.
The installation of the git process varies according to the different OS. So let’s see how to install Git on both Ubuntu and Windows machines.
How to use github on Ubuntu
For Ubuntu, we have to install git using the below command.
$ sudo apt install git
Git command To check the git version.
$ git --version
How to use github on windows
Download The latest version of Windows Git Bash https://gitforwindows.org/
Install it and configure it as per your requirement. Once you are done with the Git Bash installation and configuration now you can work with git.
Git Set Up
Git is now installed in your machine. So the next step is to configure Git with your GitHub information.
Open your command prompt like Ubuntu users will open the command line and windows users will open their Windows Git Bash
$ git config --global user.name "Your Name"
$ git config --global user.email "email@example.com”
If you need to change your information then using nano you can make the changes.
$ nano ~/.gitconfig
gitconfig file will look like below.
[user] email = user.email (firstname.lastname@example.org) name = user.name (abc)
How to create repository on GitHub
After github login at the right side, you will get + sign click on that in the drop-down select new repository.
After clicking New Repository, create a repository with the project name and add visibility to your project like public or private.
Now click on the “Create new file” or “Upload file” to add new files in your project and commit it.
After adding the file just commit it with a message.
Now you can check the newly created file in the project repository.
In this way, you can create your repository and add multiple files to your github repository.
I hope you understand the steps of how to create Github account and how to create a repository in Github. If you still have any queries do comment below.