Creating Project in Github

Lets say we are creating a project name library and username of the github account is ruby.

Step 1: Create a project in Github named library.

Step 2: Generate ssh key

https://help.github.com/articles/connecting-to-github-with-ssh/

Step 3: Create library project in your local machine and commit using git

git init
git add .
git commit -m 'Initial Commit'
git remote add origin https://github.com/ruby/library.git
# for using ssh
git remote set-url origin git@github.com:ruby/library.git
git push -u origin master

 

 

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 )

Connecting to %s