From: "Michael S. Tsirkin" <mst@dev.mellanox.co.il>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: RFC: git pull or git rebase?
Date: Mon, 23 Jul 2007 08:22:23 +0300 [thread overview]
Message-ID: <20070723052223.GA20614@mellanox.co.il> (raw)
Hi!
I'm working on several kernel-related projects at the same time:
- some of them are small, and private, so I do a fetch
and rebase to update to Linus' code, to keep history clean
- some of them are larger, and involve several other people,
so I do git pull (the history is messy anyway)
Problem is, I get confused sometimes and do a git pull
instead of git rebase, or vice versa. Of course I can just
reset to ORIG_HEAD when I realise my mistake.
However, I wonder whether this happens to others, too.
Would it make sense to add a branch attribute that says
"do not pull this branch" or "do not rebase this branch"?
Maybe even make git do the right thing automatically,
so that git would look at this attribute and perform
pull or rebase as appropriate?
Thanks,
--
MST
next reply other threads:[~2007-07-23 5:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-23 5:22 Michael S. Tsirkin [this message]
2007-07-23 9:07 ` RFC: git pull or git rebase? Alex Riesen
2007-07-23 9:31 ` Michael S. Tsirkin
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=20070723052223.GA20614@mellanox.co.il \
--to=mst@dev.mellanox.co.il \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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