Bad: Git Bash on windows 10 - bash

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?

Related

Problems after installation of git Bash

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.

Windows 10 Git bash : cat: /etc/version: No such file or directory

I am running Git bash on Windows 10 64 bit. It was running fine perfectly today , but now it shows up with a weird message and the formatting and colors are all messed up:
Does anyone know how to fix this? I uninstalled Git bash and deleted the folder in C:/Program Files/Git , and rebooted, but the message still shows
Ok, I was able to fix it. I just had to navigate to my C:\Users\YourUserNameHere directory and delete my .bashrc, .bash_profile, and .bash_history profiles. Then I ran the unins000.exe located inside the C:\Program Files\Git directory to uninstall Git Bash. I then manually deleted the folder right after and rebooted. I then reinstalled Git Bash.
I SSH'd into a device right before, so I believe something during that period added those bash profiles there, and gitbash was automatically loading them and when I uninstalled, it left those files there.

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.

Vim fugitive plugin does not recognise git archive on Windows

I installed vim fugitive via pathogen plugin. Helptags created the tags for fugitive.
In the next step I set up a brand new git repo with git init, jumped into that folder, created a README.
In gVim I then run :Gstatus but the split window that opens is empty. :Gcommit tells me that the command git is spelled wrong.
I installed Git-1.7.9-preview20120201.exe for Windows 7 64Bit from here:
http://code.google.com/p/msysgit/downloads/list
Can anybody bring me on the right track?
Regards
It seems gitcommand is not in the PATH environment variable. What happens if you invoke git from Windows command prompt?
msysgit installer provides you 3 options:
Use Git Bash only: PATH won't be edited.
Run Git from Windows Command Prompt: it will add Git to your PATH.
Run Git and included Unix tools from the Windows Command Prompt: Git and several Unix tools will be added to your PATH.
So, you can re-install git with one of the two last options or add manually C:\Program Files\Git\cmd to your PATH.

"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