git-bash

Django — manage.py shell doesn't work with git bash terminal

走远了吗. 提交于 2019-12-23 12:43:37
问题 So I've been following this django tutorial, and I've been running into some issues with the manage.py commands when using a git bash terminal. I'm using Python 2.7.11 (Anaconda 2.4.1), Django 1.9.5 and git 2.8.1.windows.1 on Windows 10. Specifically the python manage.py runserver and the python manage.py shell commands don't appear to work properly using a git bash terminal, but they do work when using an Anaconda terminal. I'd like to find a way to get it working with git bash. According to

Use “perl6” command with Git Bash on windows

眉间皱痕 提交于 2019-12-23 07:26:31
问题 Using Windows, I installed Rakudo Star and Git and ensured that C:\rakudo\bin and C:\rakudo\share\perl6\site\bin are in my Path environment variable. Now, typing perl6 inside Git Bash afterwards gives the command not found error, while the command does work inside powershell and cmd . Typing echo $PATH inside Git Bash confirms again that the folders above are in my path variable here as well. How can I get the perl6 command working inside Git Bash? Note: Using moar (moar.exe) which resides in

Cant run shell script using Git Bash interface on Windows10

白昼怎懂夜的黑 提交于 2019-12-23 03:32:16
问题 Following this post I wasn't able run shell trough Git bash. This is the batch file : %ComSpec% /c ""C:\Program Files\Git\git-bash.exe" --login -i -- C:\Users\rmrd001\Documents\Git\scripts\first\test.sh" pause This is the shell script: echo Hello, World! And this is what I get when batch is run: I can see the instantaneous appearance of the bash program, but can't catch the text into it. I double-triple-checked the paths, they are correct. I ran the script trough the Git bash, everything

Cant run shell script using Git Bash interface on Windows10

折月煮酒 提交于 2019-12-23 03:32:09
问题 Following this post I wasn't able run shell trough Git bash. This is the batch file : %ComSpec% /c ""C:\Program Files\Git\git-bash.exe" --login -i -- C:\Users\rmrd001\Documents\Git\scripts\first\test.sh" pause This is the shell script: echo Hello, World! And this is what I get when batch is run: I can see the instantaneous appearance of the bash program, but can't catch the text into it. I double-triple-checked the paths, they are correct. I ran the script trough the Git bash, everything

Windows Git bash prompt not displaying colours from a function

狂风中的少年 提交于 2019-12-23 03:25:20
问题 I'm using the following colour codes/function (pinched from Paul Irish) in my .bash_prompt, to display branch name and status in Git bash on windows. MAGENTA="\033[1;31m" ORANGE="\033[1;33m" GREEN="\033[1;32m" PURPLE="\033[1;35m" WHITE="\033[1;37m" BOLD="" RESET="\033[m" function git_info() { # check if we're in a git repo git rev-parse --is-inside-work-tree &>/dev/null || return # quickest check for what branch we're on branch=$(git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||') # check

Malloc Failed in Git Clone

时间秒杀一切 提交于 2019-12-23 03:25:09
问题 Using Git version 2.19.1.windows.1 on Windows 7 64 bit. I am trying to run in D:/Users/Della/Documents/Python_Scripts/ git clone https://gitlab.com/forkingpin/dui-dashboard.git on the git bash. The repository contains only a 59 bytes ReadMe so far. The error message I am getting reads fatal: Out of memory, malloc failed (tried to allocate 1744830464 bytes) fatal: not a git repository: 'D:/Users/Della/Documents/Python_Scripts/ What is the way out? Points to note. The same command is working

Python script runs in PyCharm but not Git Bash

懵懂的女人 提交于 2019-12-22 11:33:46
问题 Say I've got a arbitrarily big, modular Python 2.7 codebase: project ↳ docs ↳ etc ↳ package ↳ module1 ↳ submodule1 ↳ subsubmodule1 ↳ __init__.py ↳ subsubmodule2 (... and so on) ↳ __init__.py ↳ submodule2 ↳ subsubmodule1 ↳ __init__.py ↳ subsubmodule2 (... and so on) ↳ __init__.py ↳ submodule3 (... and so on) ↳ __init__.py ↳ module2 ↳ submodule1 ↳ __init__.py ↳ submodule2 (... and so on) ↳ __init__.py ↳ __init__.py ↳ module3 (... and so on) ↳ __init__.py ↳ __init__.py ↳ test project is the root

git clone without asking for users password

前提是你 提交于 2019-12-22 08:28:53
问题 I want to create public git repository on my dedicated server for anyone to clone but it keeps asking me for password for git user. I have created user named git without password. Used: passwd -d git Unfortunately every time I try to do: git clone git@myhost:myrepo.git I'm getting asked for password. I have tried setting in sshd_config Match user git PermitEmptyPasswords yes PasswordAuthentication yes With either yes and no for PasswordAuthentication but still no use. 回答1: It seems doing it

ssh-add Could not open a connection to your authentication agent

我们两清 提交于 2019-12-22 08:11:40
问题 I'm having a little issue with my ssh-agent. Indeed I can't make it work and I don't understand why. This is the console's output : I'm sure that ssh agent is running. For your information I'm on Windows 7 and I tried to run the gitbash with administrator permissions, but that did not changed anything. Also everything worked fine until yesterday, and I did not changed anything. Do you guys have any ideas why ? 回答1: Simply upgrade to the latest git for windows (with a more recent bash, while

msysGit sudo-like command

笑着哭i 提交于 2019-12-22 05:07:44
问题 If we open msysgit as administrator, we can use it as if we were root. However, it is often easier to open without administrator privileges. For example, for administrator privileges, you often have to go to Windows Explorer, the Start menu/screen, etc., and you can't do this from the taskbar. Sometimes, I'm too lazy to do all this, but I want to gain administrator privileges while in Bash. Is there a sudo - or su -like command or script, etc., for Git Bash? Going into cmd.exe , PowerShell ,