GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • welcome
  • install
  • settings
  • good practice
  • elegant code
  • packages
  • project
  • git
  • quarto
  • resources
  • AI
  • saveload
  • sumatra
  • PATH

This view

  • Original page
  • New address

GeezerVison is showing brry.github.io — git | programming course

git

git is a version control software. With it, you can download repositories, track your changes and develop code collaboratively.

install git

This needs to be done only once :)

  • If not already done before: create a github account at https://github.com/signup. Use a short username!
  • Download and install git, see https://git-scm.com/downloads
  • Restart RStudio (if open)
  • Manage authentification without renewing PAT access tokens via SSH (screenshots for these instructions, if wanted):
    • RStudio -> Tools -> Global Options -> Git/SVN: Ensure the path to the Git executable is correct.
    • Create SSH Key, close window
    • View public key: copy the displayed public key
    • go to https://github.com/settings/keys and click New SSH key, name it and paste the public key
    • in the RStudio bottom/left Tab Terminal: type the following (line by line):
    git version # just to see git works fine
    git config --global user.email "[email protected]"
    git config --global user.name "Your_Github_UserName_Here"

use git

To clone a git repo, your IDE handles most the work for you :)

    1. Go to a repo (for example github.com/brry/fpsetup) and click on Code - SSH (if logged in) - Copy URL

    1. For VScode, follow their instructions.
    1. At RStudio - File - New Project - Version Control - Git,
      paste the repository URL, set the subdirectory and create project.
      I recommend to keep the Project directory name so local and github folder names match exactly.

    1. Make sure you’re in the Rproject (RStudio topright):

    1. From now on, get the latest version with a single click on Pull:

git resources

Happy Git with R: https://happygitwithr.com
Excellent tutorial on git in general (mostly without RStudio): http://kbroman.org/github_tutorial
HPI course: https://open.hpi.de/courses/git2020
Contribute to OS software: https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.