git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Why can't git pull --rebase work if there are modified files?
@ 2008-12-30 21:40 skillzero
  2008-12-30 23:09 ` Thomas Rast
  0 siblings, 1 reply; 2+ messages in thread
From: skillzero @ 2008-12-30 21:40 UTC (permalink / raw)
  To: git

If I have locally modified files and I try to 'git pull --rebase', it
fails because of the locally modified files. If I don't use the
--rebase option, it works (but generates a merge commit if I have
local commits). Why does rebasing require an unmodified checkout? It
seems like it should only stop if I something in the newly fetched
changes conflict with my local changes.

I almost always have modified files in my checkout for things I'm
working on. I also often have a commit or two that haven't been pushed
because I'm waiting until I get to a good point before pushing. If I
do 'git pull', I end up with a merge commit each time. That's why I
want to use --rebase, but for it to work, I have to git stash, then
rebase then git stash pop.

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

end of thread, other threads:[~2008-12-30 23:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-30 21:40 Why can't git pull --rebase work if there are modified files? skillzero
2008-12-30 23:09 ` Thomas Rast

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).