git-bash

Running .sh scripts in Git Bash

二次信任 提交于 2019-12-03 08:06:25
问题 I'm on a Windows machine using Git 2.7.2.windows.1 with MinGW 64. I have a script in C:/path/to/scripts/myScript.sh . How do I execute this script from my Git Bash instance? It was possible to add it to the .bashrc file and then just execute the entire bashrc file. But I want to add the script to a separate file and execute it from there. 回答1: Let's say you have a script script.sh . To run it ( using Git Bash ), you do the following chmod +x script.sh ./script.sh You can change the chmod to

Activating pyvenv from gitbash for windows

此生再无相见时 提交于 2019-12-03 06:25:25
I use gitbash on windows (7, 64bit). I tried to create a venv using python 3.4's built-in venv module by calling python -m venv venv , and it created successfully, but the resultant venv does not contain a bash activate script, only a .bat and .ps1 . The virtualenv library for python 2.6.6 (version 13.0.1) created the following four files in the venv/Scripts/ folder: activate , activate.bat , activate.ps1 , and activate_this.py . As the gitbash console cannot use the bat or powershell scripts, and I don't really want to have to move back to the windows cmd prompt or to a VM, is there any way I

ERROR : No emulator images (avds) found thrown on windows 8 while opening emulator

自古美人都是妖i 提交于 2019-12-03 06:23:20
问题 I am having one cordova application made in ionic framework i want to test it in emulator som fired command ionic emulate android and it threw following error Error coming on Git Bash command prompt while running command ionic emulate android. Error: c:\Users\work\biziHiveMobile\platforms\android\cordova\node_modules\q\q.js:126 throw e; ^ ERROR : No emulator images (avds) found. 1. Download desired System Image by running: c:\Users\work\AppData\Local\Android\android-sdk\tools\android.BAT sdk

Git Bash (MinGW 64) v2.12.2 - how do I change the font size?

*爱你&永不变心* 提交于 2019-12-03 06:21:16
How can I change the font size for Git Bash? This is the web site where I downloaded related application, click here . Right click in the upper left corner of the Git Bash window and chose "Options.." : Click "Text" and "Select". Select an appropriate font size: Press OK and Save to keep the new settings. It's little different from a program like Microsoft Word, but the process is really simple** Step 1: Open your Git Bash terminal and click your cursor on the logo present in the top left corner of the terminal prompt and then click on the link called Options... (which will be third from the

Embed Git bash in PyCharm as external tool and work with it in PyCharm window (windows xp)

纵饮孤独 提交于 2019-12-03 05:57:07
问题 I added cmd as external tool in PyCharm, and it works nicely in PyCharm console (View -> Run). Here is described how to launch Git bash from cmd. It opens in separate window, but I want it to be in the same PyCharm window, so I can type commands without pressing the CTRL+TAB. I suppose there should be other way, more straight-forward, but I dont see it. 回答1: Configure the Terminal to use bash.exe or sh.exe from Git installation like this: "c:\Program Files\Git\bin\sh.exe" --login Use Tools |

Git Windows Disable password prompt UI but get password prompt from shell

自闭症网瘾萝莉.ら 提交于 2019-12-03 05:44:02
问题 In git bash for windows, the username and/or password is asked in a separate UI popup prompt like below. On Hitting Cancel you get the below shell based prompt, where the same username can be input. Is there a way I can disable these prompts? I still do want to enter my username and password however instead of the UI based prompt, i want to enter it through the shell based prompt. Using suggestions from this does not help. How to undo git config --system core.askpass git-gui--askpass 回答1: Try

How to use Windows network paths with Git Bash

元气小坏坏 提交于 2019-12-03 05:21:57
问题 Paths to network resources are denoted in Windows with the \\servername\share\path\to\folder syntax. How does one use such a folder within Git Bash, which uses Unix-style paths? 回答1: Actually just cd //servername/share/path/to/folder where //servername/ is followed by at least one shared folder. 回答2: You need to associate a drive letter to the network path you want to use. To do this, execute the following command in the Windows cmd shell: pushd \\servername\share\path\to\folder The next

Invoking notepad++ from Git Bash

…衆ロ難τιáo~ 提交于 2019-12-03 04:46:37
问题 Hi guys i'm using msysgit in Window 7. How do i invoke notepad++ from Git Bash like we do it with our default notepad. Like for example name@usename notepad textfile.txt Instead i want the file to open with notepad++ Note : I've added notepad++ to my PATH, but still unable to invoke it from commandline. Edit I tried this in .gitconfig --> [alias] notepad='C:/Program Files/Notepad++/notepad++.exe' but isn't working. 回答1: So, by default you won't have a .bashrc file so just navigate your to

Git Bash won't let me type anything, just shows a blinking cursor

眉间皱痕 提交于 2019-12-03 04:46:09
问题 I'm not able to type any characters at the Git-Bash command line; all it shows is a blinking cursor. Git Bash was working fine yesterday, but I'm not able to do anything on it now. What can I do to fix this? 回答1: I found the answer to a problem with similar symptoms. I'll include it here for someone who finds this page looking for an answer, as I did. In my case, the cursor didn't move, or show my typing onscreen. However, it actually executed the command (if I pressed Enter ), even though it

opening sublime text from windows git bash

偶尔善良 提交于 2019-12-03 04:00:30
问题 How do I open Sublime text from Git Bash in Windows? I tried adding the alias at the ~/.bashrc file but nothing worked. I was looking for something very easy but I could not find in the internet. 回答1: I am going to answer my own question. First, I created a .bash_profile file under /Users/username directory. I have copied all my git aliases here. To access sublime text I added this alias: alias subl="/c/Program\ Files/Sublime\ Text\ 2/sublime_text.exe" I think the spaces after the backward