Table of Contents

Git

Setup

First, clone the official repository.

$ git clone git://ikkoku.de/sushi

Usage

Use the repository like usual.

$ ... edit ...
$ git commit
$ git pull
$ ... edit ...
$ git commit

Merge

Before merging, some additional steps are necessary to keep the history linear.

$ git fetch
$ git rebase origin/master

Pushing

Here is a basic outline of how to use a remote repository to publish changes.

$ ssh $user@$host 'cd public_git; GIT_DIR=$repository git init'
$ git remote add $host $user@$host:~/public_git/$repository
$ ... see above ...
$ git push $host
 
development/git.txt · Last modified: 2008-10-06 20:07 by Michael Kuhn
 
Except where otherwise noted, content on this wiki is licensed under the following license:2-clause BSD license
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki