Getting Started with GitHub

GitHub Documentation

GitHub has great documentation on both git and GitHub.

Set up git

Configure your name and email address if you haven't already.

Open a terminal and run…

git config --global "Your Name Here"
git config --global ""

On a Mac, also run…

git config --global credential.helper osxkeychain

GitHub has more detailed instructions on setting up git.

Create a new RStudio project on GitHub

Push an existing RStudio project to GitHub

Learn to use git at the command line

Learning to use git at the command line is a useful skill to get yourself out of sticky situations involving conflicts and merges.

tryGit is a fantastic interactive tutorial for learning to use git at the command line.

Further Reading

PHD Comics - “FINAL”.doc


XKCD - Git Commit

Git Commit