public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* Difficulties using git rebase.  Help, please!
@ 2026-01-11 15:46 Alan Mackenzie
  2026-01-12 15:45 ` Alan Mackenzie
  2026-01-12 16:08 ` Kristoffer Haugsbakk
  0 siblings, 2 replies; 7+ messages in thread
From: Alan Mackenzie @ 2026-01-11 15:46 UTC (permalink / raw)
  To: git; +Cc: acm

Hello, Git.

Some while ago I made some amendments to the Linux kernel for my own use
(at least).  I now want to rebase these changes onto the master branch of
the Linux Stable repository.

When I wrote the changes, I based them off branch linux-6.13.y.  The
command I tried to rebase with was, with PWD being the pertinent copy of
the Linux repository:

    $ git rebase --onto master origin/linux-6.13.y HEAD

..  This didn't work well.  In particular, I got a conflict in a file that
I had never changed.  Why?

Well, I corrected the conflicts in that file, git add'ed it, git rebase
--continue'd, then got another conflict in a file I'd never touched.
Same again.  After the third such conflict, I gave up with git rebase
--abort.

Criticism: there doesn't appear to be a --dry-run option in git rebase,
with which one can see how many files will be conflicted.  Instead they
are notified one at a time, drip, drip, drip, .... to the user.  In my
case there might have been four conflicted files, there might have been a
thousand.  Either I'm missing something, or git rebase is missing
something, hopefully the former.

Incidentally, when I do git status, I get as part of the output:

    Your branch is ahead of 'origin/linux-6.13.y' by 2012 commits.

..  I haven't done 2012 git commits in my life.  What does this number
2012 mean?

So, back to git rebase.  Would somebody please explain why I am seeing
these conflicts at all?  Please also help me make progress.  I'm stuck.

Thanks!

-- 
Alan Mackenzie (Nuremberg, Germany).

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

end of thread, other threads:[~2026-01-13 17:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <aWPC39kUFrvt00lY@MAC.fritz.box>
2026-01-11 15:55 ` Difficulties using git rebase. Help, please! Alan Mackenzie
2026-01-11 16:29   ` Pushkar Singh
2026-01-11 15:46 Alan Mackenzie
2026-01-12 15:45 ` Alan Mackenzie
2026-01-12 16:08 ` Kristoffer Haugsbakk
2026-01-13 17:10   ` Jeff King
2026-01-13 17:41     ` Pushkar Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox