Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
can't attach new Git For Windows 2.0 #176
I'm running the new Windows Git 2.0 release candidate. It uses msys2 and mintty.
If I open git bash, and try to attach window it throws an error as attached. With the previous version of windows git, when I ran git bash, it automatically attached to conemu, a feature I'd like to re-enable.
I also installed msys2 stand alone and that does attach. Also when I open msys2, it always opens a cmd window that gets attached to conemu that just says press any key to close, not problematic though.
In trouble shooting it I realized conemu and mintty are both terminals. So it was a bit redundant. Not sure if it should work that way or not. Though when WinGit2 replaces the current one, I'm sure many more people will run into this issue.
I'm not sure how git-bash.exe is launching it, but I just created a shortcut file that kind of matched that msys did when it fell bash to sh:
and that seems to work fine. Don't know if there are any special env variables that are important to set, like MSYSTEM, MSYS, or anything else.
Oh, I also had to change in
The only quirk is that this actually creates 2 tabs... one for git-bash.exe, which is effectively hung for the duration, and a second for the console window which it creates. Thus far, I haven't found any way around the multiple tabs.
@Maximus5, is it possible to make ConEmu hide a tab (without showing the original, hidden console window)? If so, that would likely be a usable workaround.
I should have added that the following task command works, at least for the time being, without the multiple-tab side effect.
I'd prefer to avoid this approach, however, since git-bash.exe may perform additional setup which causes this method to break in future.