git-bash

Console closes in fresh install of Git Bash

二次信任 提交于 2019-12-10 11:38:05
问题 I just installed the most recent Git for Windows (https://git-scm.com/download/win) using the default installation settings. I have the 64 bit 2.10.0 version of Git running on Windows 10. When I tried using Git Bash here, the console closes immediately and it produces a mintty.exe file with the following text: Exception: STATUS_ACCESS_VIOLATION at rip=00100407559 rax=FFFFFFFFFFFFFFFF rbx=00000000FFFFC5D0 rcx=0000000000000000 rdx=03FFFFFFFFFFFFFF rsi=0000000100444E20 rdi=00000000FFFFC5CC r8

Git when used with Mac and Windows simultaneously gives unnecessary conflicts

旧时模样 提交于 2019-12-10 11:36:25
问题 I have a git repo and I generally work on it via my mac laptop. I had also cloned the repo on my windows laptop (using git bash and cygwin ) earlier, everything was fine, but today when I took a git pull I got several merge conflicts though I had no local changes in my windows laptop. I think it may be that the folders in mac use / (forward slash) and in windows \ (backward slash) but I am not sure. Can anyone tell me why this happened and how to resolve this? 回答1: When working on the same

Why does Git Bash not display my PHP strings correctly?

拥有回忆 提交于 2019-12-10 10:44:36
问题 Here is an example: PHP: <?php echo "ção"; ?> Git Bash: $ php a.php ├º├úo Note: I'm writing a text-console application for Windows. 回答1: The bash console has changed with the more recent msys2-based (64-bits) Git For Windows 2.3.5 The OP reports: I went ahead and uninstalled msysgit and installed git-for-windows and the problem is solved, although the Git Bash is a little different.. That more recent version of Git For Windows includes all the latest utf-8 support improvements and a bash 4.3

How do I test if a string starts with another in bash?

本小妞迷上赌 提交于 2019-12-10 03:10:49
问题 Very similar but not duplicate : https://stackoverflow.com/a/2172367/57883 I'm in Git Bash 3.1 (at least that's what comes up in the prompt when I type bash inside git bash. and $ test [["DEV-0" == D*]] || echo 'fail' prints fail. if [['DEV-0-1' == DEV* ]]; then echo "yes"; says [[DEV-0-1: command not found I'm trying to test if git branch returns something that starts with DEV. but I can't seem to apply the answer. is it because all my attempts are using a string literal on the left instead

“Git Bash here” is not preserving bash history between sessions

本小妞迷上赌 提交于 2019-12-10 02:50:16
问题 I am running Git-1.8.0-preview20121022 on Windows 7 and the install was with "Git Bash Only" (least intrusive to Windows cmd). When I open the Git Bash from the start menu shortcut, everything is fine with the history. But when the Git Bash here context menu (either the git-cheetah shell extension one or the simpler registry one) is what launched a session, the commands from that session are not saved to the .bash_history . How could figure out why this is happening? Or better yet, does

Why does Ctrl-Z on Windows Git bash shell fail?

吃可爱长大的小学妹 提交于 2019-12-10 02:12:02
问题 I sometimes have to work in Windows, which often means using the Bash shell. If I am (for example) in vim ( not gvim ) with several files open, and I hit Ctrl Z to briefly go back to the shell and do something before returning to vim , instead of suspending my vim process Git Bash creates a new DOS shell. This is the last thing I'd ever want. Googling turns up nothing useful (at this point in time - YMMV in my future). What is going on? 回答1: I sometimes have to work in Windows, which often

Set SSH Identities In Bashrc

安稳与你 提交于 2019-12-10 00:35:24
问题 I have a .bashrc file to start my ssh agent (taken from here). Whenever I start my machine I keep having to add my identities to it (using ssh-add ~/.ssh my_private key ). Not knowing bash scripting much, what (and where) do I adjust this script to add in my identities? SSH_ENV="$HOME/.ssh/environment" # start the ssh-agent function start_agent { echo "Initializing new SSH agent..." # spawn ssh-agent ssh-agent | sed 's/^echo/#echo/' > "$SSH_ENV" echo succeeded chmod 600 "$SSH_ENV" . "$SSH_ENV

Wincred not working properly with Git Bash(Git for Windows) when executing certain commands like “prune”

不想你离开。 提交于 2019-12-09 23:45:41
问题 I have setup GitforWindows in my Windows 7 64Bit pretty well with Credential manager as "Wincred". Yet when I run some commands like git remote prune origin in GitBash, it gives following error in console, though runs the command: Failed to load advapi32.dll Why is that ? If there is something need to be done with Credential manager settings, then I need full explanation of how to do those settings and what each setting means. Note: This problem I have only with some commands, other commands

How do I change charset / locale in conemu?

戏子无情 提交于 2019-12-09 13:38:20
问题 I am using gitbash via conemu. I have a charset issue where the chars look wrong in gitbash via conemu and gitbash directly. I fixed it in gitbash by setting the locale in .minttyrc to .. BoldAsFont=-1 Locale=en_US Charset=UTF-8 But this doesn't fix it in gitbash when launched via conemu. Any ideas where I would change conemu settings to address locale or to get it to pick up .minttyrc settings? 回答1: As mentioned in "git log output encoding issues on Windows 10 command prompt", can you check

bower init command error (gitbash) in windows

 ̄綄美尐妖づ 提交于 2019-12-09 11:20:34
问题 When i run bower init in gitbash ,following error is displayed: bower ENOINT Register requires an interactive shell Additional error details: Note that you can manually force an interactive shell with --config.interactive 回答1: Issue: mintty.exe Issue 802 does provide a good explanation: I've tracked this down to an issue with mintty.exe. In the bower/lib/config.js file (line 34 for bower v 1.4.1), tty.isatty(1) returns false under mintty.exe , but true if you run cygwin.bat (which is bash -