ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] [JT] поучительная байка про git reset (было: q: installer.git)
@ 2008-09-18 14:07 Michael Shigorin
  2008-09-18 14:15 ` Max Ivanov
  2008-09-18 14:16 ` Damir Shayhutdinov
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Shigorin @ 2008-09-18 14:07 UTC (permalink / raw)
  To: sisyphus

	Здравствуйте.
Это письмо собиралось начинаться так:

---
Ни у кого совершенно случайно не осталось копии 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/


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-09-18 15:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-18 14:07 [sisyphus] [JT] поучительная байка про git reset (было: q: installer.git) Michael Shigorin
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

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