Questions tagged [git-bash]

208 questions
118
votes
6 answers

How do I modify my Git Bash profile in Windows?

I'm using Git Bash on Windows 7 and would like to set up Bash profile aliases such as alias gs='git status' to make my life easier. How can I do this?
Brian
  • 1,401
  • 3
  • 13
  • 17
110
votes
12 answers

How to add more commands to Git Bash?

I am working on windows machine and I use bash shell which comes with Git. But there are many utilities which are missing in this version of bash shell. How can I install more commands on this shell?
Ankit Zalani
  • 1,217
  • 2
  • 9
  • 5
95
votes
11 answers

How to add the 'tree' command to git-bash in Windows?

I'm using git-bash in Windows 7. I'd like to see a tree of the current directory. However jcollum@DEVELOPER01 ~/Dev/express_coffee $ tree . sh.exe": tree: command not found OK, so I don't have…
jcollum
  • 4,963
  • 11
  • 46
  • 62
93
votes
6 answers

How to make git not prompt for passphrase for ssh key?

I'm using git bash and I setup ssh key using ssh-keygen and each time I do something with a repo git ask me for passphrase for /c/Users/jankiewj/.ssh/id_rsa. Is there a way to disable that passphrase. EDIT: I've edited original title (removed…
jcubic
  • 2,833
  • 2
  • 23
  • 23
87
votes
5 answers

How can I find out the command line options for git-bash.exe?

Apparently my google-fu sucks... I know these from other StackExchange posts: --cd-to-home # Change directory to home --cd= # Change directory to -i # ? -c # Run command, but --command doesn't…
816-8055
  • 1,176
  • 1
  • 8
  • 12
62
votes
5 answers

What does an `output is not a tty` error mean?

I tried to write the output of the command php -i to the a file using php -i > info and received the following error: output is not a tty What does it mean? I'm using git bash on Windows.
Max Koretskyi
  • 733
  • 1
  • 5
  • 10
48
votes
6 answers

Where is the Git Bash `/` directory?

When I open Git Bash on Windows 7, the default directory is /. It has *nix-style subdirectories, and cd .. doesn't change the directory. Where is this directory on my Windows machine? The directory C:\Program Files\Git\ has similar contents, except…
Joshua Meyers
  • 597
  • 1
  • 4
  • 4
36
votes
6 answers

Windows & Git Bash: Bash PATH to read Windows %PATH% system variable

I've recently added a directory to the Windows PATH manually by going into Control Panel -> System -> Advanced system settings -> Environment Variables -> User variables -> PATH. (Windows 7, 64-bit.) After rebooting and starting cmd.exe, echo %PATH%…
Ahmed Fasih
  • 859
  • 1
  • 8
  • 9
24
votes
4 answers

Installing programs in git bash?

I'm running git bash on windows and I'd like to install some of the linux tools I'm familiar with but apt-get, yum, etc don't appear to work. How can I install programs in git bash?
wogsland
  • 441
  • 3
  • 7
  • 16
20
votes
4 answers

Can git-bash and cygwin shell do the same things?

On Windows 10, can git-bash and cygwin shell do the same things? What can one do but the other can't? For example, As shells, can they both work the same as bash? What programs and commands can run in one but not in the other? For example, in…
Tim
  • 16,963
  • 69
  • 181
  • 260
18
votes
3 answers

How to fix "Permission Denied" in Git Bash in Windows 10?

Whenever I tried to run this command: python get-pip.py, git bash gave me this response: bash: /c/Users/Sergio Ley/AppData/Local/Microsoft/WindowsApps/python: Permission denied. I don't know how to fix this and have tried to search this up with no…
17
votes
2 answers

How can I configure git bash to display a timestamp for each command?

I run git's bash on Windows7 to manage source control for projects. Can I edit C:\Program Files (x86)\Git\etc\git-prompt.sh to enable me to timestamp when I ran commands? e.g. instead of user.name@machine /c/somedirectory $ git pull origin…
StuperUser
  • 702
  • 2
  • 8
  • 26
16
votes
3 answers

Setting to use git-bash as default shell when connecting remotely via OpenSSH to Windows Server 2016

The Powershell OpenSSH website has good instructions on how to install and use OpenSSH. These include how to "Configuring the default ssh shell (optional)" If I elect to use git-bash instead of powershell, what -Value do I put into the following…
Clay
  • 531
  • 2
  • 8
  • 16
14
votes
3 answers

How to install mintty into 'Git Bash' on windows?

I have installed git on windows from http://git-scm.com/download/win and I use the Git Bash shortcut to access git commands. Unfortunately, Git Bash uses the Windows Command (CMD.EXE) Terminal which is horrible to work with. How can I change Git…
Chris Snow
  • 636
  • 1
  • 6
  • 18
14
votes
1 answer

How to disable git bash daily updates checking?

I've installed git bash and ticked the "Check daily for updates" option. I thought that it will update automatically, but it requires me to configure the set up manually each time. I don't update it but it annoys me every day. When I tried to…
Ivan Yurchenko
  • 283
  • 2
  • 9
1
2 3
13 14