From: Daniele Segato <daniele.bilug@gmail.com>
To: "Александр Ильин" <ajsoft@yandex.ru>
Cc: Andrew Sayers <andrew-git@pileofstuff.org>,
Michael J Gruber <git@drmicha.warpmail.net>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: What's the best way to make my company migrate to Git?
Date: Tue, 1 Jun 2010 19:16:19 +0200 [thread overview]
Message-ID: <AANLkTimnQJmctLU1LmT1x3KhB84J2Wrqsa8Nfo5vVDLI@mail.gmail.com> (raw)
In-Reply-To: <1533278916.20100601231415@yandex.ru>
2010/6/1 Alexander Iljin <ajsoft@yandex.ru>:
> Hello!
>
> DS> You also can't create new Subversion branches or tags with git-svn,
I've been corrected on this: git svn tag and git svn branch are there
for that purpose.
> Another point: you can't contribute to branches via git-svn, you can
> only commit to trunk. It is easy to be confused if you've created a
> feature branch in Git. If you then want to git-svn dcommit a
> half-done work, you will mess up the trunk.
that's not correct
You can contribute to any subversion branch, but you have to do it
with a local branch tracking the
remote one
say you are on "master" which track remote svn "trunk" and you want to
contribute to remote branch "v1.x"
you can do this:
git checkout -b myBranch-v-1-x v1.x
it will checkout the remote v1.x creating a new label "myBranch-v-1-x"
for tracking it.
you can then work on myBranch-v-1-x as usual, when you'll git svn
dcommit from there you'll commit on the remote v1.x branch.
but you have to be careful with cherry-picking.
if you want to cherry pick a comment on trunk to commit it on branch
v1.x you'll have to amend it removing the line:
git-svn-id: https://your-svn-url/repos/trunk@1234 a123123....
or you'll not be able to commit on the remote v1.x branch.
I created a local alias for cherry-picking an a safe way for subversion:
[from alias section in my .gitconfig]
cherry-pick-svn = !GIT_EDITOR='sed -i /^git-svn-id:/d' git cherry-pick -e
which do a normal cherry-pick automatically editing the commit to
remove that line.
may be this could be added to the svn alias list?
Regards,
Daniele Segato
next prev parent reply other threads:[~2010-06-01 17:24 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-21 14:55 What's the best way to make my company migrate to Git? Daniele Segato
2010-05-21 15:54 ` Jakub Narebski
2010-05-22 15:58 ` Daniele Segato
2010-05-22 16:06 ` Jakub Narebski
2010-05-22 18:26 ` Joshua Jensen
2010-05-22 10:52 ` Andrew Sayers
2010-05-22 15:52 ` Daniele Segato
2010-05-23 14:52 ` Andrew Sayers
2010-05-24 17:37 ` Daniele Segato
2010-05-23 9:12 ` Lin Mac
2010-05-23 15:06 ` Andrew Sayers
2010-05-25 7:42 ` Michael J Gruber
2010-05-31 20:04 ` Andrew Sayers
2010-06-01 6:28 ` Michael J Gruber
2010-06-01 16:00 ` Daniele Segato
2010-06-01 16:14 ` Alexander Iljin
2010-06-01 17:16 ` Daniele Segato [this message]
2010-06-01 17:45 ` Alexander Iljin
2010-06-01 16:25 ` Erik Faye-Lund
2010-06-01 16:36 ` Daniele Segato
2010-06-01 21:12 ` Andrew Sayers
2010-06-02 5:19 ` Andreas Krey
2010-06-02 7:15 ` Michael J Gruber
2010-06-05 21:27 ` Andrew Sayers
2010-06-06 8:19 ` Steven Michalske
2010-06-02 16:01 ` Sylvain Rabot
[not found] ` <AANLkTilIihNTDPZ5NIKUzsPEZ2Gpusm-10FCBVifvNuw@mail.gmail.com>
2010-05-23 22:46 ` Daniele Segato
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=AANLkTimnQJmctLU1LmT1x3KhB84J2Wrqsa8Nfo5vVDLI@mail.gmail.com \
--to=daniele.bilug@gmail.com \
--cc=ajsoft@yandex.ru \
--cc=andrew-git@pileofstuff.org \
--cc=git@drmicha.warpmail.net \
--cc=git@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).