Questions tagged [git-bash]

Git Bash is a bash shell bundled with Git for Windows that enables use of Git from the command line.

Git for Windows provides a Bash emulation environment used to run Git and a small set of Unix tools from the command line.

2696 questions
86
votes
13 answers

Git Bash (mintty) is extremely slow on Windows 10 OS

I installed Git on my Windows 10 a couple of months ago. It worked fine for some time. But now, it's running so slow. The git status command takes 7 seconds to execute, and git stash takes many minutes for stashing (even if there is nothing to…
Rohan Bhatia
  • 1,390
  • 1
  • 12
  • 30
85
votes
1 answer

Using tr to replace newline with space

Have output from sed: http://sitename.com/galleries/83450 72-profile Those two strings should be merged into one and separated with space like: http://sitename.com/galleries/83450 72-profile Two strings are pipelined to tr in order to replace…
y.bregey
  • 1,363
  • 1
  • 11
  • 20
84
votes
3 answers

Set an environment variable in git bash

When I punch from the windows gitbash command line: set $HOME = c and do : echo $HOME It does not set it to c? How can I change/set the value of an environment variable?
bier hier
  • 13,692
  • 28
  • 72
  • 140
84
votes
2 answers

OpenSSL hangs during PKCS12 export with "Loading 'screen' into random state"

I am generating a self-signed SSL certificate with OpenSSL (not makecert), for use in IIS. openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes -subj '//CN=myhost' (The double slash is correct. The command above does…
TN.
  • 17,602
  • 25
  • 84
  • 141
79
votes
5 answers

How to use Windows network paths with Git Bash

Paths to network resources are denoted in Windows with the \\servername\share\path\to\folder syntax. How does one use such a folder within Git Bash, which uses Unix-style paths?
Florian von Stosch
  • 1,522
  • 1
  • 13
  • 22
74
votes
1 answer

Differences between Git-scm, msysGit & Git for Windows

What is the difference between git-scm (downloaded from git-scm.com) and msysGit (hosted on Google Code, Github, and probably others)? They both seem pretty similar, and even though I have git-scm, I have applied fixes specified for msysGit and they…
trysis
  • 7,124
  • 12
  • 47
  • 74
72
votes
5 answers

In Windows 7 Git Bash, is there a way to explore the directory at the current location?

I would like to explore the folder in the Windows Explorer from the shell. I know a lot of people have been asking to Cmd here from a folder. I'd like to do just the opposite and open a new window located at the current directory being browsed.
Greg Kerstine
  • 935
  • 2
  • 10
  • 19
72
votes
9 answers

Set up git bash to work with tabs on windows

I have installed console2 and git bash, my goal is to make git bash working with tabs , I have changed the target path on console setting to "C:\Program Files (x86)\Git\bin\sh.exe" --login -i. When I open console it doesn't give me option for…
Petran
  • 6,715
  • 17
  • 53
  • 89
71
votes
3 answers

Mysysgit "(END)" displays, how do I proceed?

While using mysysgit under Windows, I do not know how to regain control of the console windows after running git log in Git Bash. This seems simple yet I cannot find the key combination or command, so I find myself having to close the console window…
XBigTK13X
  • 2,445
  • 8
  • 26
  • 39
70
votes
9 answers

Running .sh scripts in Git Bash

I'm on a Windows machine using Git 2.7.2.windows.1 with MinGW 64. I have a script in C:/path/to/scripts/myScript.sh. How do I execute this script from my Git Bash instance? It was possible to add it to the .bashrc file and then just execute the…
Edvin
  • 1,307
  • 2
  • 12
  • 21
69
votes
16 answers

How to add man and zip to "git bash" installation on Windows

I am using "git bash" on Windows - that is git for Windows via the integrated bash. Apparently it uses the MINGW/MSYS underpinning. (Update from @VonC: It now uses msys2 since msysgit is obsolete since Q4 2015.) So there are already a lot of MSYS…
halloleo
  • 6,554
  • 6
  • 46
  • 88
66
votes
2 answers

Pageant does not load SSH-2 key generated with GitBash

The implementation of key handling with (Tortoise)Git for Windows confuses me. As far as I understood, you can implement with either ssh.exe (gits own ssh program), where you can then choose an ssh key per host in your ssh_config in the 'faked' home…
atripes
  • 1,525
  • 3
  • 18
  • 22
66
votes
6 answers

-bash: __git_ps1: command not found

I tried to install Ruby 2.0. My command line urped and now looks like the following: -bash: __git_ps1: command not found [11:58:28][whatever@whatever ~]$ I have not a clue how to get rid of the __git_ps1 command not found error. I've searched my…
Joel Dehlin
  • 839
  • 1
  • 6
  • 9
59
votes
8 answers

.bash_history does not update in Git for Windows (git bash)

I am using Git for Windows (ver. 1.7.8-preview20111206) and even though I have a .bash_history file in my HOME folder, it never automatically gets updated. When I start Git Bash, I can see in the history commands that I manually added to the…
franmon
  • 1,507
  • 1
  • 13
  • 23
57
votes
10 answers

How can we watch the Rails development log?

A member of my team is developing a Rails app on Windows XP. We are finding that when we run the app, either launching it within NetBeans or by opening a console and calling script/server, the Rails development log does not scroll by. There is only…
Ethan
  • 52,651
  • 60
  • 180
  • 231