From: My Th <rei4dan@gmail.com>
To: gentoo-science@lists.gentoo.org
Subject: Re: [gentoo-science] Re: overlay move to git
Date: Sun, 22 Feb 2009 21:45:56 +0200 [thread overview]
Message-ID: <1235331956.19524.31.camel@localhost> (raw)
In-Reply-To: <20090220154412.5f27c060@maracuja>
Hi!
There is my work flow with git on Science overlay.
Create a local copy of science overlay if you have ssh access:
>$ git clone git+ssh://git@git.overlays.gentoo.org/proj/sci.git
Or if you don't have one:
>$ git clone git://git.overlays.gentoo.org/proj/sci.git
Or update existing one:
>$ git pull origin
Create a new branch for work to be committed:
>$ git branch $NAME
>$ git checkout $NAME
... edit ...
>$ git add $FILES
>$ export ECHANGELOG_USER="Your Name <your.name@gentoo.org>"
>$ echangelog
>$ ebuild *.ebuild digest
>$ repoman -p full
>$ git add $FILES
>$ git status
>$ git commit
Try to push changes to overlay and check whether there have been changes
to overlay during your work:
>$ git push --dry-run -v origin HEAD:master
If so update master and rebase your branch:
>$ git checkout master
>$ git pull origin
>$ git checkout $NAME
>$ git rebase master
Push your changes, update master and delete your temporary branch:
>$ git push --dry-run -v origin HEAD:master
>$ git push -v origin HEAD:master
>$ git checkout master
>$ git pull origin
>$ git branch -d $NAME
Or format a patch and send via mail to developer (using send-mail or as
an attachment):
>$ git format-patch -1
>$ git send-email --to someone@gentoo.org --suppress-from 0001-yo.patch
Git formatted patches can be applied and pushed to overlay:
>$ git am 0001-your-package.patch
>$ git push --dry-run -v origin HEAD:master
>$ git push -v origin HEAD:master
>$ git checkout master
>$ git pull origin
>$ git branch -d NAME
Command "gitk" can be used to view your git tree graphically. Other
commands which might interest more are: git remote, git rebase.
Git "push origin" can be used only when your local copy has been created
using git+ssh, otherwise full address has to be used or another named
remote has to be created.
Hope it might be useful to somebody.
Cheers,
Reinis
next prev parent reply other threads:[~2009-02-22 19:46 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-20 14:03 [gentoo-science] Re: overlay move to git Andrey G. Grozin
2009-02-20 15:44 ` Sébastien Fabbro
2009-02-22 19:45 ` My Th [this message]
2009-02-23 7:08 ` Flammie Pirinen
2009-02-23 10:18 ` Alexey Shvetsov
2009-02-23 12:33 ` Justin
2009-02-23 17:53 ` Justin
2009-02-23 19:51 ` Henry Gebhardt
2009-02-23 20:14 ` Justin
2009-02-23 20:52 ` Henry Gebhardt
2009-02-23 20:56 ` Justin
2009-02-23 21:02 ` Justin
2009-02-23 21:23 ` Henry Gebhardt
2009-02-23 22:15 ` Justin
2009-02-23 21:37 ` Benjamin Bannier
2009-02-23 22:16 ` Justin
2009-02-23 19:54 ` My Th
2009-02-28 20:58 ` Yuriy Rusinov
2009-02-23 10:43 ` My Th
-- strict thread matches above, loose matches on Subject: below --
2009-01-08 21:47 [gentoo-science] " Sébastien Fabbro
2009-01-21 12:50 ` [gentoo-science] " Sébastien Fabbro
2009-01-21 17:25 ` Donnie Berkholz
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=1235331956.19524.31.camel@localhost \
--to=rei4dan@gmail.com \
--cc=gentoo-science@lists.gentoo.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox