[racket-dev] Git

From: Eli Barzilay (eli at barzilay.org)
Date: Fri Jan 7 16:39:59 EST 2011

Four hours ago, Stevie Strickland wrote:
> In general, this is why people say you really shouldn't train
> yourself to do "git pull" automatically, because there's plenty of
> places where you don't want that.  I always do "git remote
> update"/"git merge ..." separately because there's plenty of times
> where I don't want to merge.

I have this alias in my ~/.gitconfig file:

   up = pull --ff-only --stat --all

so I can run `git up' conveniently.  `--ff-only' is the key here, it
makes the branch you're on advance only if it's a fast-forward.
Otherwise it stops after fetching and leaves you with resolving

For people who never use branches, you can alias it to `pull --rebase'

(And I wrote about all of this too in the git intro text.)

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the dev mailing list.