Questions tagged [git-bash]

185 questions
107
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,291
  • 3
  • 12
  • 17
100
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,117
  • 2
  • 8
  • 5
83
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,451
  • 2
  • 21
  • 22
80
votes
10 answers

how do I add the 'tree' command to git-bash on Windows?

I'm using git-bash on 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…
jcollum
  • 4,501
  • 11
  • 41
  • 57
75
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,016
  • 1
  • 8
  • 11
54
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
  • 653
  • 1
  • 5
  • 9
40
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
  • 517
  • 1
  • 4
  • 4
35
votes
5 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
  • 839
  • 1
  • 8
  • 9
19
votes
3 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
  • 391
  • 3
  • 6
  • 16
18
votes
2 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
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
  • 1
  • 65
  • 171
  • 255
16
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
  • 692
  • 1
  • 8
  • 25
12
votes
1 answer

Open A New Tab In ConEmu, in the same Directory (git bash)

I want to assign a keyboard short cut within ConEmu that will open a new tab, in the same directory as the current tab is within. So something like: -new_console:d:[]%ProgramFiles(x86)%\Git\bin\sh.exe" --login -i where [] runs pwd or…
chrispepper1989
  • 263
  • 3
  • 10
12
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
  • 606
  • 1
  • 5
  • 18
12
votes
1 answer

Default console in ConEmu

I have git bash setup as a predefined task (task #1). But when I open ConEmu it defaults to cmd console, how do I change the default console to git bash?
jkarimi
  • 223
  • 2
  • 5
1
2 3
12 13