[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: git rebase and gitk

From: Graham Percival
Subject: Re: git rebase and gitk
Date: Sun, 27 Feb 2011 20:03:35 +0000
User-agent: Mutt/1.5.20 (2009-06-14)

On Sun, Feb 27, 2011 at 11:20:18AM -0800, Patrick McCarty wrote:
> On Sun, Feb 27, 2011 at 7:00 AM, Graham Percival
> <address@hidden> wrote:
> >  git rebase -i master^^^^^^
> > (however many ^ you need to cover all your recent work)
> > This lets you clean up your git history before pushing to master,
> > thereby giving us a much less cluttered history.
> It is worth noting that `git rebase' is a very powerful command, since
> you can potentially rewrite all of git history with it.  So, in
> general, be careful that you're not modifying commits that have
> already been pushed to savannah.

Yes indeed; I've wrecked my lab git repo (I'm the only one using
it, though) a few times because of this!

How about:
  git rebase -i origin/master

are there any dangers with that?

- Graham 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]