Thursday, 21 April 2016

Git - Adding a project into gitHub.com

Do you want to move your project into git hub?

Pre requisites:
1.       Account in GitHub.com
2.       GitBash software ( Download here https://git-scm.com/download/win )
3.       Some project in local


Here are the steps.

1.       Create a Repository in gitHub.com
a.       Click on New Repository button

b.      Enter Repository name (EmptyMavenProject)and click on create button

c.       Copy ssh key for further use. ( Ex: https://github.com/kasthurikranthikumar/EmptyMavenProject.git)

2.       Commit project via GitBash

a.       Open Project folder in Explorer

b.      Right click and select Git bash



c.       $git init


d.      $git add *


e.      $git commit –m “my first commit”


f.        $git remote add origin https://github.com/kasthurikranthikumar/EmptyMavenProject.git


g.       $git push origin master

j.    Now, we can see project in github.com.


Do you want to download this project? here is it.
https://github.com/kasthurikranthikumar/EmptyMavenProject