Skip to content

Git Version Control System

KRG In a Nutshell

Basic Concept

  • version control system
  • distributed (there are as many repositories as one clones)

Basic Commands

  • git add
  • git commit
  • git push
  • git pull
  • git branch
  • git checkout
  • git clone
  • git log

One-time configurations

As a new git user, there are a number of one-time configurations to set:

  • identity (replace John Doe and johndoe@example.com to your identity in the following shell commands, see more details (e.g., default text editors) here):

    git config --global user.name "John Doe"
    git config --global user.email johndoe@example.com
    
  • divergent branch handling (when git pull, typically one would go with the "merge" approach, see commandline hint for other options):

git config pull.rebase false

Small Project (for Group Members)

  • use git to add your member information (picture and short bio) to docs/notes/people/KRG/

Further Reading

Reading List