Questions tagged [git-bash]

213 questions
122
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,337
122
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,441
  • 3
  • 13
  • 17
110
votes
12 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
  • 5,402
102
votes
2 answers

What is Git Bash for Windows anyway?

I have happily been using Git and Git Bash from https://git-scm.com/. There is a page with more information here: https://git-for-windows.github.io/. Yesterday I ran into a problem with rsync, and I started digging deeper into Git Bash for Windows.…
geneorama
  • 1,400
99
votes
4 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,327
99
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
  • 3,123
  • 4
  • 25
  • 23
74
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.
62
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…
38
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
  • 879
  • 1
  • 8
  • 10
27
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
  • 469
21
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
  • 17,743
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…
18
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
  • 621
18
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…
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…
1
2 3
14 15