Git

Quick Jump Navigation:

  • Introduction
    • Key Git Ideas
  • Installation
    • Source
    • apt-get install git-core
    • How to Setup a Shared Private Repository with SSH Access
    • Setup your own config file
      • Shortcuts for remote repositories
      • Name / email for your commit signature
  • Quick Start
    • Start a new project repo with initial revisions
    • Have a second user checkout, edit, and commit to the project
  • Command Reference
  • Git Links and Resources

Introduction

Ideas

  • Every working directory is also a repository.  You checkin and checkout new repositories by cloning them.
  • A central repository is just a directory on a dedicated machine that one person (the integrator) has access to.

Install

apt-get install git-core

How to Setup a Private Shared Repository

Like for a company or department.  Use SSH.

git clone code.mydomain.com:/opt/git/project_A
git push  code.mydomain.com:/opt/git/project_A

Give each user a user account on the code machine, and make sure they have ssh access. [HOW]  Use the shell __ to limit access to git pull and git push.

Adding Shortcuts to Config File

[fixme]

Quick Start

Getting Started

Git Command Reference

git clone

git merge

git pull

git push

git checkout

git diff

Resources / Links