From: Michael Shigorin <mike@osdn.org.ua>
To: sisyphus@lists.altlinux.org
Subject: [sisyphus] [JT] поучительная байка про git reset (было: q: installer.git)
Date: Thu, 18 Sep 2008 17:07:25 +0300
Message-ID: <20080918140725.GH25633@osdn.org.ua> (raw)
Здравствуйте.
Это письмо собиралось начинаться так:
---
Ни у кого совершенно случайно не осталось копии master-бранча
из моего installer.git? (0.4-alt8.M40.18 делался три недели тому)
---
...но неожиданно уже завершилось хэппи-эндом. :)
Я тут торжественно налетел на любимые грабли:
15001 cd /home/mike/git/I/installer-desktop/
15002 git checkout master
15018 git checkout boyarsh # это могло быть в другом шелле...
15028 git pull
15029 U=boyarsh; git fetch git://git.altlinux.org/people/$U/packages/$(basename `pwd`) master:$U
15033 gitk --all
15035 git reset --hard 41b65e93fcc81bb315de8f4f988179e1a3bcbb2c
15036 git st
15038 git checkout -b M40
15040 git reset --hard 4727c6a5601b12d25d58b479909d37d329d5bf11
15041 git merge boyarsh
15043 ssh git.alt rm-db installer
15051 git checkout M40
15052 cd git/I/installer
15065 git branch
15066 git log
Дело в том, что в master лежала работа, которую стоило сразу
назвать более однозначно -- M40. Соответственно сделав fetch,
получил вагон конфликтов, решил откатиться на последний alt*M40*,
сделать из него отдельный бранч и откатить master до сизифного
ствола, по которому и накатываться. Сделать-то сделал, но и
второй reset пришёлся уже на M40, после чего merge прошёл чисто,
но сопоставление git branch и git log оказалось довольно
болезненным -- пока, плачась спрашивавшему про гит ender@ в
жилетку с этой историей, не сообразил, что в master-то всё должно
быть в порядке. Посмотрел -- точно ;-)
Мораль сей басни такова: tar -- наше всё, а ещё не стоит rm-db
того, что недавно в полном составе пушилось, до git log.
И сделаю-ка я пару копий на бук и домой...
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
next reply other threads:[~2008-09-18 14:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-18 14:07 Michael Shigorin [this message]
2008-09-18 14:15 ` Max Ivanov
2008-09-18 14:16 ` Damir Shayhutdinov
2008-09-18 14:56 ` Michael Shigorin
2008-09-18 15:15 ` Max Ivanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080918140725.GH25633@osdn.org.ua \
--to=mike@osdn.org.ua \
--cc=shigorin@gmail.com \
--cc=sisyphus@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git