On Fri, Feb 18, 2022 at 01:27:57AM -0800, Philipp wrote:
> Thanks again for the responses!
> I was wondering if you could see the images. The option was there so I used
> it, but I will post the text from now on.
I could, and did, actually, but it wasn't not too convenient ;-)
I mean, this is a technical mailing list, and when reading their traffic I
expect that 99.9% mails are plain text and it's OK to use familiar tooling.
Well, actually it's not just my personal convenience; you can read a good
summary of "the whys" over there at [1].
> git config --list --show-origin:
>
> - no "alias.rebase" setting anywhere
> - pull.rebase=false
> - rebase.autostash=false
>
> These two are the only rebase related settings in the config files.
Good!
> echo $PATH:
> It's very hard to read any helpful information from this because of the
> formatting.
Well, it's just a list of paths delimited either by ':' or ';' - depending
on how Git Bash shows them; I'd expect to see ':' there.
> Would I get the same information if I just look up the path variables in
> the Windows settings?
No.
Well, technically yes, but the thing is, there are per-system settings and
per-user settings; the latter override the former, and seeing them right in
the shell shows the "actual" value which is definitely used to look up
programs called by their short name such as "git.exe" or just "git".
> Or am I mixing something up here?
>
> $ which git-rebase
> which: no git-rebase in (...long list of paths...)
Good!
> $ which git
> /mingw64/bin/git
This one looks odd.
Well, maybe Philip Oakley could verify this for us? - I don't have a Windows
machine in my vicinity at the moment.
> So have I set my path variables wrong then?
> My path variable (in Windows settings) for MINGW64 does point to a non
> existent folder at least.
> So I will try fixing the path and then try again.
> But still, why would git recognize its path for MINGW64 and not git-rebase?
> And why did the older version also not have a problem with this?
Well, two things:
* It's OK that you do not have git-rebase (with the dash in its name).
I just wanted to make sure you do not have it.
The reason is that Git has a special logic which makes its "front-end"
or "entry-point" executable, "git.exe", look up "git-whatever" if
the user called "git whatever". This allows to easily install external
commands for Git. For instance, I have "git-whenmerged" installed.
* As to the pas to the front-end executable, I'm not sure.
To me, it looks strange, but I don't have a Windows machine handy,
so would like to hear what others do.
> I can't run the git rebase command again to try debugging the command as I
> finished rebasing with the older version.
This, in itself, is not a problem: you can create an empty repository, record
two or three commits updating a dummy file and then rebase some of them.
That is, you don't need to mess with a "real" repository which contain
precious data.
1.
https://meta.stackoverflow.com/a/285557