-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up github
First go to github and create an account
Next, following the instructions at set-up-git to download and setup git.
It is important to set your username and password
# Sets the default name for git to use when you commit
git config --global user.name "Your Name Here
# Sets the default email for git to use when you commit
git config --global user.email "your_email@youremail.com
A sanity check to make sure that has worked is to check the contents of ~/.gitconfig file and make sure that your [user] stanza has been updated.
cat ~/.gitconfig
#Password caching (OS X) The instructions in [Set Up Git]The instructions are slightly incorrect, if you do need to install credential-osxkeychain using curl, then the url domain is actually 'https://' not 'http:'. # Download the helper curl -s -O https://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain) are slightly incorrect.
If you do need to install credential-osxkeychain using curl, then the url domain is actually 'https://' not 'http:', and the '-s' switch means that curl will silently fail. I have logged a help question so the documentation will be updated.
# Download the helper
curl -s -O https://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain
#Adding your ssh public key to github You will never be able to push back to github from a cloned repository until you set up your ssh public key in your settings
The best way is to following these instructions
Specifically, using pbcopy to 'copy' the entire contents of your public key file to the clipboard is a nice approach
pbcopy < ~/.ssh/id_rsa.pub# Copies the contents of the id_rsa.pub file to your clipboard
The following sanity in the documentation check makes sure what you have done works;
ssh -T git@github.com