Problems after installation of git Bash - windows

After git bash installation I lost option to create new file from right click context menu folder in Windows 10.
When I right click on desktop instead of "new" there is only get Gui Here and Git Bash here, option to create new is invisible.
After I uninstalled Git Bash from pc I lost it all, there is no git and create new folder settings.

Uninstalling Git bash would uninstall Git for Windows itself.
As an alternative, it is best to install it without the Windows Explorer integration, and to use the regular "Open command window here." contextual menu option:
Then you can type "bash", and you are in a bash session.

Related

Bad: Git Bash on windows 10

I installed git on my computer with windows 10. Once the installation is complete I create a folder on the desktop, then pressing the right button I click on Git Bash Here and then I write the command git init. The problem is that I don't create any .git folder or anything else can you tell me if it's right so I have if there is any error?

Git context menu in Windows Exporer has a "git bash" option but it doesn't work

The default git distribution for windows contains, besides the CLI tools, a shell integration, i.e. a context menu for Windows Explorer. This context menu has a "Git bash" option which I suppose should open a Git bash prompt cd'd to the current directory. But instead, the git bash window opens and immediately closes, giving me no chance to even see what it says inside it. Any fix?
Note: Opening Git Bash from the Windows Start Menu works fine, but if I open it that way, then I need to manually cd to the needed dir.
I don't know exactly what distribution/version of git I had before, but now I installed "Git for Windows, version 2.10.1, 32-bit" from https://git-scm.com/download/win and the problem is gone.

Let git bash launch at current repositories

Is there a way to let Git Extension open Git Bash at the current repositories ?
I always need to cd from the home directory. I run Git Extension under Win7.
You can right-click the Git Bash shortcut, click Properties and change the "Start in" to the path to your repository
With Git version 2.5.2 you can now just CRTL + Right Click and select "Git Bash Here" from the sub menu.
This opens up the bash window in the current repository.
If you're using msysgit there should be an option to integrate with explorer. You can then right click on a folder and select open git bash here.
The toolbar of GitExtensions has a button that will launch a console MsysGit in the current repository. It is also accessible from the Git menu, or Ctrl-G shortcut.

git without bash/cygwin

I'm on a vista laptop, trying out git for the first time.
I installed the msysgit version, and it installed a "git bash" shortcut on the desktop. When I run it, it seems to run in a cygwin kind of box, where C:\ is /c/
Is it safe to use git from the windows command line where /c/ is C:\? does that create any conflict with the way git expects the pathes to be like?
What about, if I init from the bash/cygwin console, then commit from the windows console? Does that create any trouble?
Note: Keep in mind that git does not track where the repository is at -- just references. In other words you can cleanly move an entire git directory (.git + working tree) and it still works fine.
It should work in either case assuming your environment variables allow you to run git from the windows command line.
Both point to the same actual directories (although referenced differently), and use the same executable to modify the repository.
When you install MSYS Git, it will give you 3 options related to system paths. Which one you choose will determine how you can use it. It sounds like you want the 3rd option, "Run Git and included tools from the windows command prompt". This will put all of the git-related binaries in the system path, allowing you to use git from a normal command prompt. Be aware that it also overrides a few built-in windows tools, as the warning in the installer says.
After installing msysgit, you should be able to right click on an empty folder and see options "Git GUI here" and "Git BASH here". If you click Git GUI here it will open a GUI. Have fun!

"Git Bash Here" creates a bash terminal with a nonfunctional version of git

I've suddenly started experiencing an issue on Windows 10 where right clicking in a git repo folder and selecting "Git Bash Here" returns a bash terminal that has a useless version of git in it.
I say that this version of git is useless because you can enter git commands, but nothing seems to happen. (git log is the only exception to this, as it works fine, showing the history of commits.) All of the other git <commands> return absolutely nothing. Not even an error is returned.
Things worth noting:
Sometimes (maybe every time?), before an unsuccessful git command is 'finished running,' a quick black prompt is seen flashing on the screen for a fraction of a second.
Right clicking and selecting Git GUI Here prompts me with an error window
Window title: "git-gui: fatal error"
Window content: "Cannot parse Git version string:"
Reinstalling does NOT solve the issue
Another coworker started experiencing this same issue a week before I did, so now I'm left wondering if a slow roll out of a Windows update was to blame, as we have the same desktop environment and IT department supporting it.
Question:
How can I restore the functionality of "right click Git Bash Here" in Windows 10?
This error is resolved by altering compatibility mode on git-bash.exe (located in C:\Program Files\Git by default), specifically setting it to always run as administrator.
This can be done by right clicking the executable (again, git-bash.exe), clicking Properties, the Compatibility tab, and then checking "Run this program as an administrator". Click Apply, then OK, and you should be all set.
NOTE: Apply these same steps to git-gui.exe, located by default in C:\Program Files\Git\cmd, to fix the issue stated with the Git GUI Here selection in explorer's right click window.

Resources