Gentoo Archives: gentoo-science

From: Justin <justin@×××××××××.net>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] Re: overlay move to git
Date: Mon, 23 Feb 2009 12:33:22
Message-Id: 49A2978A.40301@j-schmitz.net
In Reply to: Re: [gentoo-science] Re: overlay move to git by Alexey Shvetsov
1 Alexey Shvetsov schrieb:
2 > On Понедельник 23 февраля 2009 10:08:55 Flammie Pirinen wrote:
3 >> 2009-02-22, My Th sanoi:
4 >>> There is my work flow with git on Science overlay.
5 >>>
6 >>>> $ git clone git+ssh://git@×××××××××××××××××××.org/proj/sci.git
7 >>>> $ git branch $NAME
8 >>>> $ git checkout $NAME
9 >>> ... edit ...
10 >>>
11 >>>> $ git add $FILES
12 >>>> $ export ECHANGELOG_USER="Your Name <your.name@g.o>"
13 >>>> $ echangelog
14 >>>> $ ebuild *.ebuild digest
15 >>>> $ repoman -p full
16 >>>> $ git add $FILES
17 >>>> $ git status
18 >>>> $ git commit
19 >>>> $ git push --dry-run -v origin HEAD:master
20 >>>> $ git checkout master
21 >>>> $ git pull origin
22 >>>> $ git checkout $NAME
23 >>>> $ git rebase master
24 >>>> $ git push --dry-run -v origin HEAD:master
25 >>>> $ git push -v origin HEAD:master
26 >>>> $ git checkout master
27 >>>> $ git pull origin
28 >>>> $ git branch -d $NAME
29 >> I wonder if this short and simple work flow is really all necessary. I
30 >> have to admit I have no prior experience with DVCS’s and in last thread
31 >> when I asked advice no one replied, so I just did something along the
32 >> lines of:
33 >>
34 >> $ git pull
35 >> $ vim
36 >> $ git commit
37 >> $ git push
38 >>
39 >> During my last update. It seemed like it worked though? Will something
40 >> break soon if I continue to use this set of commands? What is the work
41 >> flow for trivial version bump, if so? I would hope that I do not have
42 >> to execute some 22 commands every time I bump my packages from now on.
43 >
44 > Better
45 > $ git pull
46 > $ vim
47 > $ echangelog
48 > $ repoman commit
49 > $ git push
50 >
51
52 But whats important from alexxy's solution is, that if you cannot push,
53 because your HEAD is not up2date than do
54
55 git pull --rebase
56
57 and not only
58
59 git pull

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-science] Re: overlay move to git Justin <justin@×××××××××.net>