[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reconfigurationen nach update
[Thread Prev] | [Thread Next]
- Subject: Re: reconfigurationen nach update
- From: Alexander Holler <holler@xxxxxxxxxxxxx>
- Date: Sat, 10 Mar 2012 10:09:26 +0100
- To: uugrn@xxxxxxxxxxxxxxx
Hallo,
Am 10.03.2012 09:39, schrieb Alexander Holler:
> Git. Git kann automatisch mergen und rebasen, was du oben beschreibst
> entspricht genau dem.
Ich beschreibe mal wie man sowas mit git elegant loesen koennte:
Zuerst legt man sich einen Branch namens "original" an, der die
Original-Konfigurationsdatei enthaelt:
Branch original
foo.conf
Jetzt legt man sich einen Branch "meins" an, identisch zum Branch "original"
(keine Aenderungen):
Branch original Branch meins
foo.conf foo.conf
Naechster Schritt:Aenderungen an foo.conf
Branch original Branch meins
foo.conf (modified)
|
foo.conf foo.conf
Update des Originals kommt:
Branch original Branch meins
foo.conf (updated)
| foo.conf (modified)
| |
foo.conf foo.conf
Jetzt gibt es 2 Moeglichkeiten: rebase und merge.
1. Moeglichkeit Rebase:
Branch original Branch meins
foo.conf (updated and modified)
foo.conf (updated) |
| |
foo.conf foo.conf
2. Moeglichkeit Merge:
Branch original Branch meins
foo.conf (updated and modified)
foo.conf (updated) |
| foo.conf (modified)
| |
foo.conf foo.conf
Evtl. hilft das beim Verstaendnis von Git. Rebase und merge kann Git voellig
automatisch und sehr, sehr oft fehlerfrei (allerdings nicht immer, es kann
nicht zaubern).
Gruss,
Alexander
--
UUGRN e.V. http://www.uugrn.org/
http://mailman.uugrn.org/mailman/listinfo/uugrn
Wiki: https://wiki.uugrn.org/UUGRN:Mailingliste
Archiv: http://lists.uugrn.org/