Winpty and Git Bash

winpty is A Windows software package providing an interface similar to a Unix pty-master for communicating with Windows console programs. That is why you need it as described here: The software works by starting the winpty-agent.exe process with a new, hidden console window, which bridges between the console API and terminal input/output escape codes. It … Read more

How to correct `git` reporting `detected dubious ownership in repository` without adding `safe.directory` when using WSL?

In fact, I installed a newer version of git-bash 2 days ago and I suspect the bash environment could condition this. I understand you installed a new version of Git for Windows, which includes Git Bash. Newer versions of Git, starting with 2.35.2 and 2.36, including Git for Windows, are stricter about directory ownership: https://github.blog/2022-04-18-highlights-from-git-2-36/#stricter-repository-ownership-checks. … Read more

Can not activate a virtualenv in GIT bash mingw32 for Windows [duplicate]

Doing Scripts/activate runs the script in a new instance of the shell, which is destroyed after the script execution. To run the script in your current shell, use either . Scripts/activate or source Scripts/activate. Scripts/activate.bat does not work here because it is written in Batch, Windows cmd.exe language, and not Bash.

Git Bash mysql blank

I had the same problem with git bash and mysql, and solution to this is to use winpty mysql -u root I guess this is because you are running mysql for windows, using unix environment, and as far as I know winpty should be used for running windows applications in the git bash (not 100% … Read more

Unicode (utf-8) with git-bash

I faced the same issue in MSYS Git 2.8.0 and as it turned out it just needed changing the configuration. $ git –version git version 2.8.0.windows.1 The default configuration of Git Bash console in my system did not show Greek filenames. $cd ~ $ls AppData/ ‘Application Data’@ Contacts/ Cookies@ Desktop/ Documents/ Downloads/ Favorites/ Links/ ‘Local … Read more

VSCode is suddenly defaulting to powershell for integrated terminal and tasks

Update: Version v1.60.0 had a bug. Upgrade to v1.60.1 or higher for a fix. The bug manifested in the following symptoms: The Open in Integrated Terminal shortcut-menu command in the Explorer pane’s shortcut always uses the built-in default shell (PowerShell on Windows), ignoring the configured one. The same goes for running tasks (with or without … Read more

Why does git pull hang?

You may need to remove unnecessary git objects such as dangling commits & blobs: git fsck && git gc –prune=now git-fsck : Verifies the connectivity and validity of the objects in the database git-gc : Cleanup unnecessary files and optimize the local repository You can refer here about dangling commits & blobs.