Two Simple Ways To Create GitHub Project

GitHub project creation is an easy task. You only need GitHub account to create GitHub project. Go  here to create an account in GitHub.

Git project can be created in 2 different ways. The first way to create a project is to go to and create a new repository. The second way to create it from local desktop/laptop using git software.

Create GitHub Project From

You can create Git project with the help of account you created in Second step is to create a new repository. Below are screenshots of the steps to create new repository i.e. creating new GitHub project.

Login into and click the green colored “New repository” button. You will be directed to new git project creation wizard. Fill in the details as required and click “Create repository” button.

GitHub project creation

On successful creation of the project, you will be redirected to the below-shown screen. This screen shows the details of the project.

GitHub project Details

You can see all the git projects on your GitHub home screen in your repositories list.

GitHub project List

To clone i.e. check out the project use “git clone {Git URL}”  command.

Create GitHub project Using Git software

The first thing you need to do is to install Git and configure basic settings. You can visit previous article “How to install and setup git in Windows 7” to setup git in Windows 7. You can visit the article “How to override git configurations” on how to override those configurations.

After installing git and setting up all configurations, it is the time to create git project. We will go step by step to create this project. I will use Git BASH terminal and below are the steps to do the same.

  • Open Git BASH terminal and go to your workspace where you want to create the project. In our case, I will create project “TestProject” hence I given the folder name “TestProject“. Refer below screenshot.

GitHub Project ProjectPath

  • Execute “git init” command as shown in the screen below. It will create a hidden “.git folder inside “TestProject“. The “.git” folder contains all the settings of git related to project “TestProject“. Do not modify or delete it without taking backup.
$ git init

GitHub project init

  • We will add a file in the project as an example so we can have something to commit. I will create a file “README.txt” in the project. After adding file I will execute “git add .” in Git BASH terminal.

GitHub project add

You can also see the command “git status” which shows the status of files that are modified.

  • This is the most crucial part in order to create the project from a local machine. Like SVN, you have a URL through which you can perform the checkout, commits, and reverts. Similarly, for every Git project, there is a corresponding Git Url. Now as shown in below screen execute command
git remote add origin {Git url}

 GitHub project remote -v

I have set the remote origin i.e. now we have a Git URL corresponding to out project “TestProject“. Every commit we make will be reflected in project. Anybody can use this Git URL to check out our project and configure it.

  • Now execute the below two commands.
git commit -m {commit message}

This command helps to commit file “README.txt”. 
The flag “-m” indicates the presence of commit message as well. 

git push origin master

This command pushes changes committed using previous Git commit command
to remote repository or main repository.

GitHub project commit push

As shown in figure above we also have to provide credentials. This feature depends on our requirement. If we use SSH protocol then there is a key bound to commit.

Hope you like the article. We highly appreciates comments and feedback.

You can also Subscribe here to stay updated on latest posts of

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.