How to use Git on windows [Simple]

It took me some time to get used with git. Here i will explain in simple, the steps used for creating a git repository and uploading your local project folder to git hub.


  1. Basic command used here will be
git init
git add .
git status
git commit -m "first commit"
git remote add origin
git push -u origin master


  1. Download Git hub Desktop for windows
  2. Sign up  for your Git hub account. (Try to get your full name as your git id. It will be useful in future )
  3. If you are a student, you can get additional benefits . Educational Git .
  4. When you are in the main page, on the top right you will see a plus icon -> new repository.

git new repository

2. Enter just the name of your repository.

create new repository

3. Now you will see the following screen.

git simplified

4. Now go to your project folder in your windows PC. Right click over a blank region. You will see Git Bash Here in the Right click options.

right click, git bash

5. Now type in the following commands in the Git Command Line.

>> git init   //initializes a git folder in your local folder

>>  git add .   // don't forget the '.' after add. It is used to add all the files in the folder to local git.

>> git status  //to check the files added to local git

>> git commit -m "first commit"  // commit is used to save the changes.

// You can simple copy paste the next 2 lines from your Git Quick Setup Page.

>> git remote add origin<username>/<repository>.git

>> git push -u origin master






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 )

Connecting to %s