git-bash

Backspace and arrow keys aren't working in IRB(Git Bash console) on windows machine

十年热恋 提交于 2019-11-29 10:40:16
问题 I just installed ruby 1.9.2 on windows machine and Backspace or any other arrow keys don't work. This happens only when I open IRB on Git Bash console. But it works fine on Windows console. Any help on that? Note: IRB was working fine on both consoles with the earlier versions of ruby. 回答1: Same thing happened to me. Running irb with --noreadline solved my problem: irb --noreadline 回答2: Seems you didn't have readline installed while compile ruby. So install readline, maybe also readline-devel

git config core.autocrlf is true, but I'm still getting a warning?

こ雲淡風輕ζ 提交于 2019-11-29 08:55:46
I understand that Windows uses CRLF and that it's good practice to let Git change line endings to LF before committing and back to CRLF when checking out. For that reason, I have core.autocrlf set to true. However, contrary to what other threads say (e.g., this ), I am still getting this warning: warning: LF will be replaced by CRLF in [FILE_NAME]. The file will have its original line endings in your working directory. Firstly, I thought setting core.autocrlf to true was supposed to stop these warnings. Secondly, isn't Git supposed to convert LF to CRLF when committing, not the other way

Winpty and Git Bash

狂风中的少年 提交于 2019-11-29 01:51:41
I had the same issue as Python not working in the command line of git bash , where in Git Bash, when I type Python , it just hangs. However, typing winpty python works perfectly. What exactly is winpty ? Why is the above command useful? winpty is A Windows software package providing an interface similar to a Unix pty-master for communicating with Windows console programs. That is why you need it as described here : The software works by starting the winpty-agent.exe process with a new, hidden console window, which bridges between the console API and terminal input/output escape codes. It polls

How do I run msysgit in cmder?

馋奶兔 提交于 2019-11-28 20:33:12
I was using msysgit and git-bash in cmder when I accidentally exited out of it. Now I can't seem to figure out how to get to the unix environment I previously had. Git bash is not recognized as a command. All I see is the typical command window prompt displaying the C:/User/.. rather than the $~User . How would you restore the git bash session? VonC You can type the full path of your msysgit intallation (2014, Git 1.9.z) to launch a bash session. For instance: "c:\prgs\git\PortableGit-1.9.0-preview20140217\Git Bash.vbs" : will open a new windows "c:\prgs\git\PortableGit-1.9.0-preview20140217

Set an environment variable in git bash

☆樱花仙子☆ 提交于 2019-11-28 18:08:33
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? A normal variable is set by simply assigning it a value; note that no whitespace is allowed around the = : HOME=c An environment variable is a regular variable that has been marked for export to the environment. export HOME HOME=c You can combine the assignment with the export statement. export HOME=c If you want to set environment variables permanently in Git-Bash, you have two options: Set a regular Windows environment

fatal: could not read Username for 'https://github.com': No such file or directory

坚强是说给别人听的谎言 提交于 2019-11-28 17:42:49
I have the following problem when I try to pull code, using GIT Bash on windows I already tried to implement the accepted solution provided here: Error when push commits with Github: fatal: could not read Username but the problem persists. After adding/removing origin I still get the same error. fatal: could not read Username for 'https://github.com': No such file or directory Follow the steps to setup SSH keys here: https://help.github.com/articles/generating-ssh-keys OR git remote add origin https://{username}:{password}@github.com/{username}/project.git Fayaz I faced the exact same problem.

My .bashrc file not executed on Git Bash startup (Windows 7)

断了今生、忘了曾经 提交于 2019-11-28 17:19:31
This is what I did: cd ~ touch .bashrc notepad .bashrc and the content of my .bashrc is (found on the web somewhere): 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" > /dev/null ssh-add } # test for identities function test_identities { # test whether standard identities have been added to the agent already ssh-add -l | grep "The agent has no identities" > /dev/null if [ $? -eq 0 ]; then ssh-add # $SSH_AUTH_SOCK

Cygwin or Git Bash command window? [closed]

坚强是说给别人听的谎言 提交于 2019-11-28 17:06:53
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I'm new to Git. I downloaded Git and installed on my Windows. I saw Git provides a Git Bash command window. I also have Cygwin installed on my machine. Both Git Bash and Cygwin provide Git command line utilities. So my question is: Which one is the preferred way to use Git

Change drive in git bash for windows

别来无恙 提交于 2019-11-28 16:34:10
问题 I was trying to navigate to my drive location E:/Study/Codes in git bash in windows. In command prompt in order to change drive I use E: It returns an error in git bash . bash: E:: command not found. How do I change my current directory location from /c/users to E:Study/Codes 回答1: In order to navigate to a different drive just use cd /E/Study/Codes It will solve your problem. 回答2: Just consider your drive as a folder so do cd e: 回答3: In order to navigate to a different drive/directory you can

Set up git bash to work with tabs on windows

最后都变了- 提交于 2019-11-28 16:31:35
问题 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 tabs anymore. 回答1: I've got this working with ConEmu instead. http://sourceforge.net/projects/conemu/ Install Git Bash Install ConEmu Open ConEmu, in settings (top right corner), click "settings" In the settings tree, open "startup", then "tasks" Add a