Creating “github” account and a Repository

Hai friends,


Git is a distributed revision control system with an emphasis on speed. Git was initially designed and developed by Linus Torvalds for Linux kernel development.

Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server. Branching and merging are fast and easy to do. Git is free software distributed under the terms of the GNU General Public License version 2.

To install ‘Git’ in your fedora, open your console and use the following command.

$ yum install git

Now in your machine, we must setup the “Global Setup”, for this use the open following commands:

$ git config --global "Your Name"

$ git config --global


“your name” = “yourname” = yourmailid.

Now Create a new directory (This directory name is, which we have to give as “project name” in on-line repo creating)

$ mkdir example

Go to that directory using,

$ cd example

$ git init

In this directory, add your codes or your data, which you have to connect with github.

for example,

$ touch README
$ git add README
$ git commit -m 'first commit' 

(here in quote we must have give some comments)

Creating “github” account on-line:

Go to and select the “pricing and signup

Here they are giving some plans. Select one plan as your wish.

For example if you are selecting “create a free account

create an account and login.

After login, select the “create a new  Repository“.

here you have to give “project name” and some details. Then click the “create repository

Now, here you can see the procedures, which now we  done.

Finally, you can see the commands like this,

$ git remote add origin

$  git push origin master

now, lets see how will step you through the process of generating a keypair on linux and uploading it to GitHub. We use Ubuntu and bash in this guide, command may vary depending on your linux flavor and shell.

Generating an SSH key on linux is a fairly straightforward process.

$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/abcd/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/abcd/.ssh/id_rsa.
Your public key has been saved in /home/abcd/.ssh/
The key fingerprint is:

Now open your  .ssh/ using,

$ gedit .ssh/

Then, go to your on-line github account and select the “Account Settings”

Here select the “SSH Public Keys”, In key box add your content of “”

Now, you can pushup your projects into github account.

That’s all. !!!

Feel free to ask me, if you have any doubts.


2 thoughts on “Creating “github” account and a Repository

  1. Hello Suresh,
    Really nice description posted here,
    but you know i am getting below error:

    paresh@comp35:~/example$ git push origin master
    Permission denied (publickey).
    fatal: The remote end hung up unexpectedly

    Can you please help me to sort out this error?

    FYI, i have already generated file, select key and pasted the same on account settings at web. but stilll getting this error.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s