How do I access my SSH public key?

Question

I've just generated my RSA key pair, and I wanted to add that key to GitHub.

I tried cd id_rsa.pub and id_rsa.pub, but no luck. How can I access my SSH public key?

Answer

cat ~/.ssh/id_rsa.pub or cat ~/.ssh/id_dsa.pub

You can list all the public keys you have by doing:

$ ls ~/.ssh/*.pub

How can I configure KDiff3 as a merge tool and diff tool for git?

How can I create a Git repository with the default branch name other than "master"?