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.
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.
Click on Commit
After committing, click on Push
Select master
Provide your remote repository URL here for Arbitrary Location and click Push
GIT will ask for your credentials again here. Provide those.