Putting Code on Git Hub

1. Signup with github .
2. Click on Create new repository to create repository
For example: “MyApplication”
3. Create clone of your repository. Here clone means a copy of repository folder on a personal machine.

 #git clone link given in address bar

For example: git clone https://github.com/username/repositoryname

4. To add file in github.
a. Place the files in clone folder which you want in your repository
b. Change directory to clone folder

#git add "file_name"
#git commit -m "file_name"
#git push

It ask for username and password of github.

Thats all

 

 

Advertisements

About Priyanka Kapoor

Simple, Hardworking & friendly.....
This entry was posted in Linux. Bookmark the permalink.

One Response to Putting Code on Git Hub

  1. Nice Articles… post more articles on Linux and Java

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s