ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] git-clone && git-push
@ 2008-08-12 22:08 Eugene Prokopiev
  2008-08-13  3:24 ` Alexey I. Froloff
  2008-08-13  6:46 ` Vladimir V. Kamarzin
  0 siblings, 2 replies; 4+ messages in thread
From: Eugene Prokopiev @ 2008-08-12 22:08 UTC (permalink / raw)
  To: Devel

Здравствуйте!

Задача - склонировать чужой репозитарий и, несколько видоизменив его,
положить к себе на git.alt:

$ ssh git.alt clone /people/mike/packages/mkimage-profile-server.git
Initialized empty Git repository in
/people/enp/packages/mkimage-profile-server.git/

$ git-clone git.alt:packages/mkimage-profile-server.git
Initialized empty Git repository in /home/enp/git/mkimage-profile-server/.git/
remote: Counting objects: 1310, done.
remote: Compressing objects: 100% (507/507), done.
remote: Total 1310 (delta 728), reused 1310 (delta 728)
Receiving objects: 100% (1310/1310), 1.10 MiB, done.
Resolving deltas: 100% (728/728), done.

$ cd mkimage-profile-server

$ cat > .git/remotes/origin << EOF
URL: git.alt:packages/mkimage-profile-server.git
Push: refs/heads/*:refs/heads/*
Push: refs/remotes/*:refs/remotes/*
Push: refs/tags/*:refs/tags/*
EOF

$ git-push
Everything up-to-date

$ git-branch enp/lite

$ git-checkout enp/lite
Switched to branch "enp/lite"

$ git-push
Everything up-to-date

[ тут много правим ]

$ git-add .

$ git-commit -a
Created commit 5699f62: add server lite
 8 files changed, 264 insertions(+), 8 deletions(-)
 create mode 100644 profiles/lite-base/Makefile.in
 create mode 100755 profiles/lite-base/scripts.d/01-basesystem.manifest
 create mode 100644 profiles/lite-disk/Makefile.in
 create mode 100644 profiles/packages-lists/lite-base
 create mode 100644 profiles/packages-lists/lite-disk
 rewrite profiles/scripts.d/05-copydocs (79%)

$ git-push
Everything up-to-date

Что я делаю не так?

-- 
С уважением,
Прокопьев Евгений

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

* Re: [devel] git-clone && git-push
  2008-08-12 22:08 [devel] git-clone && git-push Eugene Prokopiev
@ 2008-08-13  3:24 ` Alexey I. Froloff
  2008-08-13  6:46 ` Vladimir V. Kamarzin
  1 sibling, 0 replies; 4+ messages in thread
From: Alexey I. Froloff @ 2008-08-13  3:24 UTC (permalink / raw)
  To: ALT Devel discussion list

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

* Eugene Prokopiev <enp@> [080813 02:12]:
> $ cat > .git/remotes/origin << EOF
Не надо так делать!  Тем более что оно уже давно не там хранится
и ремота origin была создана при clone.

$ git fetch origin 'refs/heads/*:refs/heads/*'

> [ тут много правим ]

> $ git-push
> Everything up-to-date

> Что я делаю не так?
Когда добавляются бранчи, их надо пушить явно:

$ git push origin ИМЯЛОКАЛЬНОГОБРАНЧА

или

$ git push --all; git push --tags

-- 
Regards,
Sir Raorn.

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

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

* Re: [devel] git-clone && git-push
  2008-08-12 22:08 [devel] git-clone && git-push Eugene Prokopiev
  2008-08-13  3:24 ` Alexey I. Froloff
@ 2008-08-13  6:46 ` Vladimir V. Kamarzin
  2008-08-13 16:17   ` Eugene Prokopiev
  1 sibling, 1 reply; 4+ messages in thread
From: Vladimir V. Kamarzin @ 2008-08-13  6:46 UTC (permalink / raw)
  To: ALT Linux Team development discussions

>>>>> On 13 Aug 2008 at 04:08 "EP" == Eugene Prokopiev writes:

EP> $ ssh git.alt clone /people/mike/packages/mkimage-profile-server.git
EP> Initialized empty Git repository in
EP> /people/enp/packages/mkimage-profile-server.git/

Обращаю внимание на http://www.altlinux.org/Community_(releases)

-- 
vvk



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

* Re: [devel] git-clone && git-push
  2008-08-13  6:46 ` Vladimir V. Kamarzin
@ 2008-08-13 16:17   ` Eugene Prokopiev
  0 siblings, 0 replies; 4+ messages in thread
From: Eugene Prokopiev @ 2008-08-13 16:17 UTC (permalink / raw)
  To: ALT Linux Team development discussions

>  Обращаю внимание на http://www.altlinux.org/Community_(releases)

Я в курсе, но времени уже не остается, уезжаю ... Если добавите, скажу
спасибо, если нет, то добавлю сам после возвращения

Анонсировал в community@ и sysadmins@ а также чуть более подробно в devel-conf@

-- 
С уважением,
Прокопьев Евгений

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

end of thread, other threads:[~2008-08-13 16:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-12 22:08 [devel] git-clone && git-push Eugene Prokopiev
2008-08-13  3:24 ` Alexey I. Froloff
2008-08-13  6:46 ` Vladimir V. Kamarzin
2008-08-13 16:17   ` Eugene Prokopiev

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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