lilypond-devel
[Top][All Lists]
Advanced

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

Re: Clean history


From: Trevor Daniels
Subject: Re: Clean history
Date: Mon, 18 Aug 2008 09:58:57 +0100

As an alternative, I do all my local (doc)
changes in separate branches.  When one is
ready to push I fetch and merge origin/master
into my local branch "master", cherrypick the
commits I want to submit and push.  It's
slightly more work, but means I can work
on several updates at the same time in separate
local commits, and keeps the history clean.

Trevor

----- Original Message ----- From: "Reinhold Kainhofer" <address@hidden>
To: <address@hidden>
Sent: Monday, August 18, 2008 12:01 AM
Subject: Re: Clean history


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Samstag, 16. August 2008 schrieb Han-Wen Nienhuys:
please, if you find yourself creating graphs like the attached, invest
some moments of your time in rebasing your changes.  It gets hard to
see what is going on here.

I completely agree.

When you have local commits, please don't do a (or even multiple like in this
example) "git pull". Each pull will create a merge commit in this case...

What I usually do is to either

1) First pull and then commit (only if I have not yet locally committed any
changes!)

2) If I already have local commits, like in this case, I do a
   "git fetch"
which will not update the current files, but download the latest history to
the .git dir. Then I do a
   "git rebase origin"
which takes the local commits and tries to append them to the latest master
from the server.
There might be some conflicts, though, if the same parts of the same files
have been modified on the server, too. In this case you'll have to open the
conflicting file, search for the <<<< indicating the problem spots and
resolve it manually. Afterwards do a "git add conflicting-file-name" and "git rebase --continue". Now you'll locally have the latest master and on top of
that all your local commits. No additional merge commits are created.

Cheers,
Reinhold


- -- - ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
* Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
* K Desktop Environment, http://www.kde.org, KOrganizer maintainer
* Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIqK3FTqjEwhXvPN0RAjb6AKC+4yfVCdWuMecGw4xPLipcYJnE1wCghxcy
nEdQTnTexPlmUxyMuGko3YQ=
=NYy1
-----END PGP SIGNATURE-----


_______________________________________________
lilypond-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-devel






reply via email to

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