Git Bash – string parameter with ‘/’ at start is being expanded to a file path. How to stop this?

The release notes to the Git Bash 2.21.0 update today mentioned this as a known issue. Fortunately, they also described two solutions to the problem: If you specify command-line options starting with a slash, POSIX-to-Windows path conversion will kick in converting e.g. “/usr/bin/bash.exe” to “C:\Program Files\Git\usr\bin\bash.exe”. When that is not desired — e.g. “–upload-pack=/opt/git/bin/git-upload-pack” or … Read more

How can I change the user on Git Bash?

Check what git remote -v returns: the account used to push to an http url is usually embedded into the remote url itself. https://Fre123@github.com/… If that is the case, put an url which will force Git to ask for the account to use when pushing: git remote set-url origin https://github.com/<user>/<repo> Or one to use the … Read more

Set up git bash to work with tabs on windows

I’ve got this working with ConEmu instead. http://sourceforge.net/projects/conemu/ Install Git Bash Install ConEmu Open ConEmu, in settings (top right corner), click “settings” In the settings tree, open “startup”, then “tasks” Add a new task, or edit one of the existing ones click on the “tab” button in second row from bottom in the first box, … Read more

What is the exact meaning of Git Bash?

git bash is a shell where: the running process is sh.exe (packaged with msysgit, as share/WinGit/Git Bash.vbs) git is a known command $HOME is defined See “Fix msysGit Portable $HOME location”: On a Windows 64: C:\Windows\SysWOW64\cmd.exe /c “”C:\Prog\Git\1.7.1\bin\sh.exe” –login -i” This differs from git-cmd.bat, which provides git commands in a plain DOS command prompt. A … Read more

Adding Git-Bash to the new Windows Terminal

Overview Open settings with Ctrl+, You’ll want to append one of the profiles options below (depending on what version of git you have installed) to the “list”: portion of the settings.json file: { “$schema”: “https://aka.ms/terminal-profiles-schema”, “defaultProfile”: “{00000000-0000-0000-ba54-000000000001}”, “profiles”: { “defaults”: { // Put settings here that you want to apply to all profiles }, “list”: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)