Questions tagged [git-bash]
The git-bash tag has no usage guidance.
84
questions with no upvoted or accepted answers
6
votes
0
answers
4k
views
Pacman is not found in msys2
I just installed Git for Windows 2.22.0 which should include pacman, but I get an
bash: pacman: command not found
and I don't see the pacman executable in /usr/bin.
4
votes
2
answers
9k
views
How to see file permissions and ownership in git bash (Windows 10)?
When I do ls -l, all files appear to have the same user, and all appear to have same permissions:
regular files have -rw-r--r--
executables have -rwxr-xr-x
directories have drwxr-xr-x
Regardless of ...
3
votes
0
answers
532
views
Git Bash Slow Over Network Drive
I'm having issues with Git Bash running slowly over a network drive. Something as simple as cd takes several seconds, moving forwards or backwards in Vim has a few seconds of latency, etc. This does ...
3
votes
0
answers
2k
views
Git Bash delayed output
I run some program in git bash terminal on windows and redirect output to grep to search for specific keywords. Problem is that the output is delayed, so it looks like the terminal waits for a chunk ...
3
votes
0
answers
1k
views
Using the msysgit shell in Emacs for windows
I am relativley new to Emacs and am trying to setup emacs, to allow the following command to open the msysgit shell.
M-x bash-shell
I have added following snippet to my init.el.
(defun bash-shell ()...
2
votes
0
answers
53
views
How Do I Prevent Git Bash Highlight On Paste?
When I use my mouse to copy text in Git Bash it highlights the text which is fine.
However, when I use the mouse to paste the text it also highlights the pasted text.
Now here comes the interesting ...
2
votes
0
answers
735
views
Start Git Bash profile in Windows Terminal from bat file and pass in an executable command to run
I am trying to start 2 applications (client and server of a MERN stack app) in Git Bash using command-line arguments for Windows Terminal. Below given is my command
wt -M; new-tab -p "Git Bash&...
2
votes
1
answer
1k
views
How can I associate bash command to Git Bash instead of WSL Bash?
I have Git Bash and WSL Bash installed. Currently bash command is associated to WSL Bash. Can I link it to Git bash instead?
2
votes
1
answer
848
views
How could I access my windows PC's Git Bash from Linux Terminal
I am trying to achieve something a bit odd. I currently have a dual monitor setup , with my laptop beside, linked with synergy. I want to connect to my windows PC from my Linux mint laptop and Control ...
2
votes
0
answers
709
views
Can't get msys2 to open windows home directory on startup
See this Github issue. Basically, I am trying to launch the msys2 shell and have the startup folder (and $HOME) refer to my Windows user home directory. Things I've tried:
I tried changing the /etc/...
1
vote
0
answers
325
views
I need the *nix top command for Git Bash
I have Git for Windows installed and I am using the Msys flavour of Git Bash:
$ uname -o
Msys
I do not want to install the MinGW suite and i cannot find the top command from the Msys repo.
The best ...
1
vote
0
answers
219
views
git bash on windows confusing argument passing behavior start with '/'
I use git bash on windows 10 and I'm a c# developer. I have made a .net 6 console, code like this:
foreach(var arg in args)
{
Console.WriteLine(arg);
}
If I use git-bash to call this console like ...
1
vote
0
answers
229
views
map alt+delete in git-bash inputrc
Does anyone know how to bind key combinations with Alt in inputrc in git-bash?
I want to map a key combination Alt+delete to kill-word, but when I press Ctrl+V and Alt+delete to see what characters it ...
1
vote
1
answer
724
views
git-bash.exe and bash.exe show different compiler version and paths
When I start git-bash.exe by, for example, selecting "Git Bash Here" option and check my compiler version and path I receive the following output:
$ g++ --version
g++.exe (Rev2, Built by ...
1
vote
0
answers
344
views
Using `git gui` with `git submodules foreach`
I have a git repository with a number of submodules that are very similar. This means that any change which is done to one of them is typically done in similar way to the other submodules.
Therefore a ...
1
vote
2
answers
1k
views
Shift-arrow keys send ABCD in Git Bash on Windows 10
My git bash isn't working. It's probably some setting I tampered with and I don't remember what it is. I don't know why Shift-left and Shift-right arrow don't select text but send D and C characters. ...
1
vote
0
answers
1k
views
Ignore delete failed files when using "git clean"
When I use git clean -dfx while the solution is opened in Visual Studio, I got
Unlink of file '.vs/MyService/v15/Server/sqlite3/db.lock' failed. Should I try again? (y/n)
How do I ignore that in the ...
1
vote
1
answer
421
views
my virtual environment cannot be found
I'm on a PC windows 10 and always open git bash, then source activate my-env and open a jupyter notebook; somehow my-env broke and I get this error:
"C:\bld\conda_1565126647711_h_env/etc/profile.d/...
1
vote
1
answer
319
views
How can I use :perldo in vim on Windows?
I installed Git Bash and vim was pre-installed. I personally would rather use PCREs instead of vim's regular expressions, so I tried doing :perldo /s/foo/bar. The error was that it could not find msys-...
1
vote
1
answer
567
views
How to untracked files I have accidentally gotten Git to track
So I messed up big time when trying to add a R Project to Git. I typed the exact location of my R Project (in my Documents folder on my computer), and typed git init.
However, when I typed git add . ...
1
vote
1
answer
5k
views
Node/Npm are verified installed, but npm install throws node not found error in gitbash
I have verified both node and npm are installed:
console image
They are also working in other shells, including VSCode using Powershell. However when running npm install in GitBash, I'm getting this ...
1
vote
0
answers
582
views
git branch command not working, but other command do
I have a strange behavior with my installation of Git. The usual Git commands work normally: init, add, commit, push, pull, but when I type any command related to branch, it reported:
C:\Program ...
1
vote
0
answers
652
views
Branch disappeared from local repo after commit
I was on a local feature branch and did 'git add .' and then 'git commit -m [my message describing the commit]' then I tried to 'git push origin [branch_name]' which, even though there is no remote ...
1
vote
0
answers
602
views
SSH asking for user password instead of ssh key passphrase?
When I attempt to ssh into my remote server, sometimes my terminal asks me for the username password, and sometimes it asks me for the ssh key passphrase. Is this normal? How can I have it always just ...
1
vote
0
answers
1k
views
Unable to git with plink
I need to configure git with putty on a windows-7 machine behind a corporate proxy. I had no problem to configure putty/pageant with a specific session for gitlab.com.
I have problems trying to ...
1
vote
1
answer
2k
views
Windows 10 Git-bash: Which script sets ORIGINAL_PATH during git-bash start up
When I launch Windows git-bash ver. 2.21.0, /etc/profile assigns %PATH% to $ORIGINAL_PATH and adds a few mingw paths which eventually become the $PATH in the bash shell.
However, inside /etc/profile,...
1
vote
0
answers
212
views
Notepad++ opens up via git bash, but receiving error
git Bash recognises Notepad++ command and opens Notepad++. But i receive the following error.(kkris is my username)
error: C:\Users\kkris\AppData\Roaming\Notepad++\plugins\Config\Hunspell\en_US.us
...
1
vote
0
answers
3k
views
Automatically load SSH key on Windows startup
The software context here is Windows 10 + Git for Windows, which comes with a lot of extra tools, some of which I mention below.
I have several private repositories on BitBucket. In order to to avoid ...
1
vote
0
answers
51
views
How to start auto Kibana after system boot (Linux)
So we are hosting our development environment on our internal LAN network. However, we keep facing an issue of restarting kibana every few minutes. Also if there is a way that I can schedule it to ...
1
vote
1
answer
1k
views
Git Bash does not recognize same command as windows command prompt
I am reproducing an NLP paper and I need to get evennia working on Windows 10, with Python 2.7. I cloned this repo and followed the instructions but cant start servers with start.sh 1, as it runs a ...
1
vote
0
answers
1k
views
In git-bash vi mode, insert mode, why is 'delete' mapped to 'esc' '3' instead of 'delete'?
In git-bash vi mode, if you're not already in insert mode, hit i.
Now when you try to use delete you exit into command mode and the prompt shows (arg: 3)
So it seems that delete is mapped to esc 3
...
1
vote
0
answers
924
views
Windows Deny Create Folder permission not honored by Git Bash
I have a folder on my Windows 7 system. Through the usual Properties->Security->Advanced dialog, I've granted Deny for Create Folders / Append Data to my current user on this folder. As expected, I ...
1
vote
1
answer
1k
views
How do stop the OpenSSH window from continuously prompting me for my passphrase?
I'm using the git bash terminal on Windows 10 to work with repos. When I use a repo where I used SSH to connect to the remote repo, I get an OpenSSH dialog that requests my passphrase with 'Enter ...
1
vote
0
answers
41
views
Files can't provide quoted paths to command line programs
As some of you may know when you open a file with a program, what's happening is the file path of the file is supplied to the program as an argument. What's happening is for some reason Windows is ...
1
vote
1
answer
3k
views
Make Git Bash open to root directory from custom link
I'm using rainmeter to make a custom dashboard for windows and ran into a problem making a custom start button for git bash needing it to open to my root directory.
The odd part is I have gitbash ...
1
vote
1
answer
3k
views
Bitbucket ssh Read from socket failed: Connection reset by peer
I'm using ssh to access git repository on bitbucket.org.
Suddenly I can no longer connect to it. Haven't installed anything or did any changes to the settings.
$ ssh -v [email protected]
...
1
vote
1
answer
122
views
GitBash to create Git Repository in Network Places?
I'm running Windows XP SP 3 on my computer. I know how to use GitBash, but I don't know how to get to my Network Places area within it so that I can create a Git Repository of a folder within a ...
0
votes
0
answers
46
views
Git Bash doesn't display characters correctly, using Visual Studio Code's integrated terminal
I use Git Bash as the default terminal profile on Windows. When I execute this command, I get the below output:
memlab run --scenario tests/oversized-object/index.js
> 'command' �����ڲ����ⲿ���Ҳ���...
0
votes
0
answers
24
views
Esc fails on vim via ssh through git bash
I am a heavy user of vim and, by extension, the Esc key.
Today, for the first time, I've noticed that it sometimes sends a literal [ to the screen instead of changing to command mode as it should. ...
0
votes
0
answers
17
views
Using MinTTY via Teamviewer to type backslash, pipe and at?
Background: Git Bash from Git for Windows uses MinTTY as the standard terminal emulator. Git Bash is built on a variant of MSYS2.
When using such a Git Bash MinTTY window, certain characters will not ...
0
votes
1
answer
815
views
How do I change the default directory where GitBash opens?
I'm using GitBash on Windows 10. Following some instructions online, I tried changing the directory where GitBash opens by updating the "Start in" field in the Properties' shortcut tab to ...
0
votes
1
answer
575
views
DNS works but SSH connection still fails with 'could not resolve hostname' on first attempt then starts to work after a few seconds
I have a Windows VM on Hyper-V for development. I push my commits to Github over SSH from Git Bash from it.
Every time I try to push or connect over SSH the connection attempt immediately fails with &...
0
votes
0
answers
70
views
How to change file access on Unix "-rw-r--r--" to " -r------w- "
(not linux)
This is an exercise for my study, changing different file and directory accesses, need to learn how to manipulate with rights
I'm trying chmod 400 and it gives -r--r--r--, but I need -r----...
0
votes
0
answers
42
views
Lines of scrollback changes sometims?
In gitbash, I had thought my lines of scrollback being set to 10000 was not working because but I can only see 72 lines of scrollback.
Options -> Terminal -> Scrollback has been updated and ...
0
votes
1
answer
19
views
Running paparzzi UAV in git bash
I got this error when trying to running paparazzi UAV in git bash. can anyone help me solve this problem ?
/usr/bin/env: ‘/usr/bin/python3’: No such file or directory
0
votes
0
answers
78
views
Git default behavior in merging conflicting branches is just choosing the incoming change without highlighting, have to use --edit
master branch contents
Hello
Hi
Salut
other branch contents
Hi
Hey
Yo
clearly this should be a conflicting merge in which git should highlight current and incoming change but that's not the case, ...
0
votes
2
answers
760
views
Bash terminal rm permission denied on windows
I am currently learning how to use the bash hyper terminal on windows. All commands seem to work correctly e.g mkdir, touch, cd; but when trying to use rm to remove a file I get the message: "rm: ...
0
votes
0
answers
405
views
Cannot reinstall Git after new PC move
This is similar to my previous question Cannot Reinstall VS Code After New PC Move
I tried to uninstall Git using Program and Features but cannot, since the uninstall file is not located on this drive ...
0
votes
0
answers
600
views
FTP upload begins and then drops abruptly
I am running the following curl command to upload files using git-bash from two Windows 10 machines (Client A and Client B) to a Windows Server (Server X).
curl --continue-at - \
-T /path/to/...
0
votes
1
answer
161
views
Add custom path on specific key press after git command in Git bash
I am looking to reduce the repetitive work.
Following is the example,
currently, I am using frequently the following command and I want to custom set the directory.
I.e git add /pkg/XYZ/123/456/789/...