Hey there, Do you know? how to install git on ubuntu? Then let me explain to you
Install git on ubuntu by two steps
Step 1: check whether git is installed in your system by typing command in terminal
$ git version
Step 2: install git through the terminal
$ sudo apt-get install git
how to create a repository in GitHub
Step 1: create an account on GitHub

Step 2: start a new project
- Give a name to repository “Demo program”
- Give Description to repository “Demo to test”
- Initialize this repository with a README
- You can choose any license “MIT LICENCE”
- Finally,Click create repository

Step 3 : Configure git to work on GitHub
1: check whether you have user name email stored in git
$ git config - - global - -list
2: give your GitHub username
$ git config - -global user.name "Anees"
Note: remember to give your GitHub username in git
3: give an email address
$ git config - -global user.email aneesmohammed44@gmail.com
4: check whether your name and email address updated or not
$ git config - -global - -list
Step 4: Cloning GitHub repository to git
Create a directory
$ mkdir git_folder
Get into the folder git_folder
$ Cd git_folder
Copy URL from GitHub git clone (URL)
$ git clone https://github.com/aneescraftsmanship/Demo-program.git


You can see Demo-program is present in folder git_folder by $ ls command
Get into the demo-program folder
$ Cd Demo-program
by $ ls command you can see two files LICENSE README.md
Create a file which we want to commit it in github
$ touch blog.c
You can see, a file called blog.c is created in folder git_folder by $ ls command
In order to edit file blog.c use $ gedit blog.c, which will open text editor, type the code and save


Check git status
$ git status
Transfer git file to git hub $ git add<file name>
$ git add blog.c
Again check git status it will be green
Commit the file (this will be a comment )
$ git commit -m " a simple demo program" blog.c
Final command to see file into GitHub
$ git push -u origin master
Give user name and password


How to delete GitHub repositories?

- Sign in to your GitHub account
- click the repository which you would like to delete
- then select the option settings
- scroll down to view delete this repository option
- enter the repository name which you would like to delete
- finally click I understand the consequences, delete this repository.
Leave a Reply