Git Simplified.

Set up with github. (Very good tutorial from Lifehacker)
How the Heck do i use Github

To remove the origin
git remote remove origin

To add origin
git remote add origin https://github.com/<username>/<repository name>.git

— Please do not add the “< >” while using the above command.
for e.g. https://github.com/omps/webdevel.git

use the origin as SSH and without authentication.
you can follow the stack overflow question on this. 
or can just add 
“git remote add origin ssh://git@github.com/<username>/<repository name>.git

To push to the repository.
git push origin master
If you have created the directly locally and wanted to push it to the github.com server, you may need to force the origin master.
i did as “git push origin master –force”, please note that this may wipe your existing content.

How to deploy keys.
Github article.

Generating keys
A very good github tutorial related to generating keys for github.

When the permission is denied.
github’s own manual to fix it.

More to come……. 

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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