ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Igor Zubkov <icesik@mail.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: [Sysadmins] Fwd: [devel] использование git
Date: Fri, 10 Nov 2006 17:58:04 +0200
Message-ID: <200611101758.06925.icesik@mail.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 1975 bytes --]

А может здесь мне помогут?

----------  Пересланное сообщение  ----------

Subject: [devel] использование git
Date: 10 ноября 2006 16:54
From: Igor Zubkov <icesik@mail.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>

Привет, Всем!

Я думаю, это оффтопик для этой рассылки, но в другой мне просто не ответят.
 Да и то о чём я спрашу может быть интересно остальным участникам Team
использующих git или думающих об использовании. К тому же, способ достаточно
экзотический. :)

И так, поехали.

Имеется два сервера (ssh там есть), который я пытаюсь настроить примерно вот
так:

server1 (prod) на нём в git положен контент сайта.

server2 (test) на нём я делаю git clone с server1. Пока всё работает.

localhost - делаю git clone с server2. Нормально.

А вот тут начинаются загадки. Я на localhost вношу изменения:
edit file
git commit -a
git push

Иду на server2 и пытаюсь там сделать push на server1. А оно валится вот с
таким:
[user@server2 www]# git push
user@server1's password:
error: remote 'refs/heads/master' is not a strict subset of local
ref 'refs/heads/master'. maybe you are not up-to-date and need to pull first?
[user@server2 www]#

Ладно, может он действительно устарел. Пытаюсь сделать pull:
[user@server2 www]# git pull
user@server1's password:
Trying really trivial in-index merge...
fatal: Entry 'file.php' would be overwritten by merge. Cannot merge.
Nope.
Merging HEAD with 79b44847e9dec04bcb0ba230bd8ffe1b246df230
Merging:
8909a04b506d7a9ad9d93f2ae5ad12f914f7b4b4 test1
79b44847e9dec04bcb0ba230bd8ffe1b246df230 test2
found 1 common ancestor(s):
bbc4d4c67f828bac741dcb1b61321c25cc2de692 test3
fatal: Entry 'file.php' would be overwritten by merge. Cannot merge.
No merge strategy handled the merge.
[user@server2 www]#

Ну и соответсвенно, ничего не мержится.

Где я так сильно накосячил?

Не дайте умереть молодым. :)

--
Телеграфная Дорога - Веди себя тише

-------------------------------------------------------

-- 
Placebo - Space monkey

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

                 reply	other threads:[~2006-11-10 15:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200611101758.06925.icesik@mail.ru \
    --to=icesik@mail.ru \
    --cc=sysadmins@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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git