1.1

  • Go to Start -> Select Git GUI

1.2

  • Click on Create New Repository

1.3

  • Provide Directory details (where your Java Classes are present) and Click Create.  
  • Now , your repository has been set up. You will need to tell GIT who you are so that commit messages will have the correct author. To do this, choose Edit Options.
  • Provide your GIT credentials in Options popup as below.

1.4

  • Your repository has been created and is ready now. It is time to add something to commit.
  • To add your programs under Staged Changes (Will Commit), click on the Icon (File Icon) to the left of your file name.
  • Once you click, the file will be moved from Unstaged Changes to Staged Changes (Will Commit)
  • Add Commit message now.

1.5

  • Click on Commit
  • After committing, click on Push

1.6

  • Select master
  • Provide your remote repository URL here for Arbitrary Location and click Push

1.7

  • GIT will ask for your credentials again here. Provide those.

1.8