- Create a GitHub Account
- Install/Configure Git
- Interact with GitHub Issues
- Make a Pull Request (on this repo)
- Create a Git Repository for an R project
- Practice: Push and Pull work from your repository
- Knit/Render Rmd as github_documents
- Make a Github Page
- Bookdown Reference: Happy Git with R (Jenny Bryan)
- Video Workshop (2017): RStudio Git/GitHub Workshop (Jenny Bryan)
Check to see if you have git installed on your machine. In some shell/terminal, run:
which git
git --version
If you don't have git: Instructions
- In this repository
- Go to the Issues tab and open the Start Here! Issue (should be the only one)
- React to some comments you like or dislike
- Make your own comment (optional)
- Edit the ggplot2-readme-problems.md file directly in GitHub
- Make a commit
- Submit a PR (a request for your changes to be incorporated into my doc)
- Create a new GH repo
- Use RStudio to slurp it down locally
- Do some work on it locally
- Push that work back up to the master copy on GH
Workflow Reference: Happy Git with R
- Edit your README again on GH
- Commit your changes directly to master branch
- Pull those remote changes to your local project
- Always good to Pull before you start work
Discussion: Advanced Collaboration Related Topics
- Always pull before starting new work
- Branching strategies: Sprint branches, Issue branches
- Git client GUIs for helping to navigate merge conflicts
- Try not to make "monster" commits
- Add a default Rmd to your project
- Knit to github_document
- Commit and Push to GitHub
- View the rendered files on GitHub
- Go to Settings
- Scroll to GitHub Pages section
- Select source: master branch
- (optional) Select a theme
- Visit your new site
- RStudio IDE is a very lightweight git client. If you're serious about git collaboration with other people, I recommend getting a Git Client.
- Git Clients are great because they give you a GUI for untangling git messes
- Which client you should use is largely operating system dependent
- I don't have any personal recommendations - google: "best git clients" to get a sense of what's popular and try one out!