Git Bash was updated and no longer works - the window opens then immediately closes :'( #5744
Unanswered
elostaunauRL
asked this question in
Q&A
Replies: 1 comment
-
A couple of preliminaries:
Now as to your Git Bash window opening and immediately closing, there are a couple of potential sources for bugs:
There's also always the option of going through Git for Windows' snapshots, which include (almost) all the official Git for Windows releases but also intermediate releases. You could download the PortableGit variants of some snapshots, unpack them (either via 7-Zip, or by running them as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been using an older version of git bash for a few years now.
Yesterday some major changes were made to my codebase and when I attempted to pull these changes in, my local repo immediately deleted 5 files in the codebase. I had never encountered this before so I created them again. When I went to git add, I received an error that the filepath was too long.
I asked about this in our dev channel and was told to run the following command:
git config --system core.longpaths true
I ran this in the root of my cloned directory and also in the root of my .sln project. It didn't resolve the issue.
I was then told to update my git version. I updated to the latest version 2.50.1 from the web site.
Once the installation was done, I returned to my directory root and right-clicked to git bash. The window started to open then immediately closed.
I have since then resolved my long line issue (it needed to be run from User[user] dir.
I have been trying everything since then to resolve with no success. I've tried uninstalling, rebooting, reinstalling. I've tried to run as admin. I've tried checking paths. I've done quite a few searches and read quite a few discussion topics on this, I've also tried following some of the suggestions from Google AI - checking various configuration files. Nothing seems to work. I've also tried opening via command prompt to see if errors would display but none do.
I'm at a loss! Git GUI works fine. Git Bash does not. I rely on this daily.
I've been reduced to running git from the windows power shell, which would be fine except the auto-complete doesn't work and some of the colors configured by Windows are impossible to read (hello, why are we still using red text on blue backgrounds?). I've never been a fan of Git GUI. I don't want to use any other GUI integration.
Does anyone know a definitive way to get my Git Bash working again? Should I toss this computer out and start anew?
Beta Was this translation helpful? Give feedback.
All reactions