Here is a hack to enable Git on Windows Command Prompt that works seamlessly with Github Desktop, in the case Git was installed along with GitHub desktop. Which kind of sucks if you want to recover discarded stashed changes, for example. Discarded files placed in the Windows Recycle bin.The use of a shell command prompt to directly enter command lines.Indeed, the latest versions of Github Desktop (I use 2.9.6) on Windows 10 no longer enables: Git config core.editor "'C:\Program Files (x86)\Notepad++\notepad++.exe' -multiInst -notabbar -nosession -noPlugin" I fixed it by typing the following in the power shell: Somehow the powershell opened by the old Github Desktop still had its core.editor set to vim. It is NOT enough to just install the new version of git and select notepad as editor. For me thats perfect as I use the new Github Desktop anyways for anything but opening the shell. Note that if you delete the git.exe, Github Desktop v3.3.4.0 will stop working and the only thing you can use it for is to open the shell. Since I had installed the Git separately in the newest version, it seems to default back to that and I get So if you are stuck with the old Github Desktop Chocolate-Covered Yaks because you like the powershell option and you want to upgrade to a newer version of GIT, then you should look for a folder like this:Ĭ:\Users\cmd folder. ![]() Unfortunately the new Github Desktop does not (yet) include a right click option to start PowerShell, like the old version did. Github Desktop was changed from Chocolate-Covered Yaks (newest version 3.3.4.0) to a new native desktop which was redesigned with Electron. If you are looking for the command line version of GIT with powershell and not CMD prompt like I was then this might help you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |