Reputation: 1646
I've just re-installed Git on my Win10 PC and tried to pin Git Bash to my taskbar.
For some reason now, when I open Bash from my taskbar shortcut, it displays duplicate icon on the taskbar. I tried to pin that icon but once I end the terminal session, that shortcut is deleted. I've tried multiple Win10 sites but most just say to repin the new icon.
Prior to updating I could pin it fine with no issues.
Upvotes: 7
Views: 2846
Reputation: 564
In my case, launching git-bash.exe
and pinning the result produced a shortcut to cmd.exe
with no arguments, which just opened a regular command window. Creating a shortcut to git-bash.exe
directly (either manually, or by pinning the existing Start Menu shortcut) caused the opened window to be separate from the pinned item.
What worked in my case (more manual):
%windir%\system32\cmd.exe /c "C:\Program Files\Git\bin\bash.exe" --login
git-bash.exe
location (one directory up from bash.exe
), and click the icon selection area for the icon to show up and to select it.%HOMEDRIVE%%HOMEPATH%
Upvotes: 3
Reputation: 394
I have faced this problem. Here is a tried and tested solution. Very easy. Out of the 2 icons that you see, right-click on the inactive icon and do Unpin from taskbar
. Then click on the active icon and do Pin to taskbar
.
Upvotes: 2
Reputation: 3336
None of the other solutions worked for me so here's what I did on Windows 10:
C:\Program Files\Git
git-bash.exe
"C:\Program Files\Git\git-bash.exe" --cd-to-home
%HOMEDRIVE%%HOMEPATH%
C:\Program Files\Git\
and select git-bash.exe
and the icon.Upvotes: 2
Reputation: 31
NOTE! This was on Windows 10
I don't know how it works but open the git-bash.exe file and pin the opened file on the taskbar
Do not pin the program which is not opened or else it wont work
Upvotes: 3
Reputation: 157
I did this for Windows 7:
Upvotes: 5
Reputation: 1
It's easy for Windows 10.
Upvotes: 0
Reputation: 1616
Pinning the git-bash.exe
fixed the problem for me. This also fixed the problem with broken icon graphic.
NOTE! This was on Windows 7 - haven't tested on Win10!
C:\Program Files\Git
.git-bash.exe
, select Pin to Taskbar.--cd-to-home
%HOMEDRIVE%%HOMEPATH%
Upvotes: 2