Questions tagged [git-bash]
The git-bash tag has no usage guidance.
204
questions
0
votes
0
answers
19
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
18
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
1
answer
145
views
CtrlV to paste-in data into GitBash?
Simple goal:
Using GitBash for Windows, I would like to be able to paste my clipboard into gitbash Via CTRL+V.
Problem:
Every tutorial I can find says:
Right-click on the Git Bash icon and select ...
0
votes
0
answers
13
views
Git-bash on Windows is missing mintty [duplicate]
I have installed and use git-bash for windows, but when I check Options -> Terminal -> Type - I don't have mintty option.
Tried reinstalling git-bash - no luck.
Tried to install msys2, and it ...
1
vote
1
answer
46
views
Can I replicate the `strings` command using `grep`?
I often use a Windows Git Bash environment, which doesn't contain the strings command.
Is is it possible to use a tool like grep to output all the strings of ASCII or printable characters above a ...
0
votes
0
answers
48
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 ...
0
votes
1
answer
63
views
On Windows 10 in GitBash, how do I configure ag (silver searcher) to print out the file where a string occurs?
I'm using GitBash on Windows 10. I want to use the silver searcher (ag), which I have used on *-nix systems and I have this installed in GitBash
$ ag --version
ag version 2.2.5 ; Windows port 2021-06-...
1
vote
1
answer
112
views
How do I uninstall a tool that was installed without a package manager on windows via git-bash?
Clarification:
So my question is rather general and doesn't address a specific tool, however, my issue came as a consequence of the need to remove the tool jq. I would appreciate a more generic ...
0
votes
1
answer
159
views
Using px proxy Windows 10, powershell, cmd, kubectl
BACKGROUND: I'm inside a corporate network using win10, I've been instructed to use px proxy and I have to use kubectl to connect to a cluster running in a cloud provider. I have the kubeconfig, in ...
0
votes
1
answer
203
views
In GitBash on Windows 10, how do you change the cursor from a line to a box?
I'm using GitBash on Windows 10. It seems the default cursor is a line
but this is somewhat difficult to see at times. How would I make the default cursor a filled rectangle?
3
votes
2
answers
148
views
Configure Cmder/ConEmu to correctly convert paths (remove /mnt/ prefix)?
Across multiple installs of Cmder I have had this issue.
When running Git Bash the drives are mounted to /, but when pasting windows paths into the console it converts as if they are mounted in /mnt/. ...
0
votes
1
answer
612
views
How do you avoid typing the passphrase (password) of your ssh key each time, on Linux and Windows with OpenSSH?
(This is a repost and edit of a question by xiiryo originally posted and closed fairly quickly on Stack Overflow.)
I use a passphrase-protected ssh key (RSA). (I used to call this a password-protected ...
0
votes
0
answers
43
views
minttty open bash and run command
My goal is to launch several "bashes" configuring their position on the screen which I achieve. Now I want each of them to run a different script like 'dotnet run' or 'npm run start'. but I'...
0
votes
0
answers
50
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
1
answer
222
views
How to use rsync for Windows on both ends?
I install rsync for Windows through git-bash. If the remote end is Linux, it works fine. However, it does not work if the remote end is Windows. I install rsync on the remote end and test working as ...
1
vote
1
answer
988
views
Git Bash extremely slow start up on Windows
I have read posts similar to this one; it seems my issue is different.
I suspect I'm having this issue due to my .bash_profile because when I delete it and open the terminal again it starts up quickly,...
1
vote
1
answer
117
views
Git Bash : neither .bash_aliases nor .gitconfig read automatically
I'm setting up a new computer, and, among other things, Git with Git Bash. I copied my .bash_aliases and .gitconfig from a previous computer, but I can't get Git Bash to source them automatically.
...
1
vote
1
answer
33
views
How do I stop emacs from clearing the screen in MinGW?
I'm getting some odd behavior in MinGW on Windows.
Every time I open emacs in the terminal emulator (emacs -nw), I find that when I close out of it that terminal has cleared itself.
For example, if I ...
0
votes
2
answers
457
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: ...
1
vote
0
answers
99
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 ...
0
votes
0
answers
344
views
How to use MINGW64 instead of MSYS when using Git-Bash in MobaXTerm
When I try to use Git Bash inside MobaXTerm, it shows it as being MSYS. However, when I open Git-Bash directly (not via MobaXTerm), it shows it as being MINGW64. Going with the first approach, I am ...
1
vote
0
answers
170
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 ...
0
votes
2
answers
73
views
is it feasible to mute the extra connection info for git-bash on windows?
Assume I have a working http-server running on example.com:8080
On ubuntu, this command
$curl http://example.com:8080/
gives
<h1>hello</h1>
while git-bash on windows gives extra ...
1
vote
3
answers
2k
views
The Windows command line shows my GPG keys, but git bash does not?
I installed GPG4Win and Kleopatra on my Windows 10 system, and imported my public and private key files that were created on another machine. My goal is to sign my commits in Github using these keys (...
4
votes
2
answers
1k
views
Can the Windows %PROGRAMFILES(X86)% environment variable be accessed in Cygwin or Git Bash?
In Git Bash and Cygwin, I can easily access the Windows %PROGRAMFILES% environment variable:
$ echo $PROGRAMFILES
C:\Program Files
$ echo ${PROGRAMFILES}
C:\Program Files
However, due to the ...
2
votes
1
answer
4k
views
Set a Windows environment variable from within Git Bash
Is it possible to set an actual Windows environment variable from within the Git Bash for example? I know that you can set environment variables via the Git Bash in general with e.g.
FOOBAR=foo; ...
1
vote
1
answer
490
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
262
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 ...
0
votes
1
answer
126
views
Unable to change cached username during git clone
I am trying to clone an Azure Git Repository from Git Bash, but it keeps asking only for the password, but I need to change the username also to authenticate correctly. I have tried removing all the ...
0
votes
0
answers
208
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
1
answer
271
views
Git Bash not using the source value specified in windows terminal settings
Until yesterday my settings.json for Windows Terminal has this profile for Git Bash:
...,
"defaultProfile": "{my_guid}",
"profiles":
{
"defaults": {},
&...
0
votes
0
answers
442
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
218
views
How could I do a list from an AWS account listing all running instances?
I'm using AWSCLI at Windows 10 Professional with GitBash. I need to have a list of all running AWS instances by account. Will start doing in an account to make a list to populate the public keys from ...
0
votes
1
answer
142
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/...
3
votes
2
answers
3k
views
Git Bash with Windows Terminal prints weird characters instead of newline
I'm on a fresh machine and installed Windows Terminal [Microsoft Store] and Git Bash [latest]. I ran a build script that logs its progress and whenever a newline character appears (maybe others as ...
0
votes
0
answers
234
views
How to set Windows Terminal to open bash at a specific folder?
How can I configure a Windows Terminal profile to open Git Bash, but setting it to navigate to a specific path?
I've tried to set --cd=\"D:/path/"" but it does not work:
%PROGRAMFILES%/...
2
votes
2
answers
5k
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
1
answer
602
views
How to stop scrolling output in git bash (MINGW64) on windows?
I am compiling using g++ and the output scrolls many pages.
On Unix/Linux I was able to achieve it using pipeline and "more".
0
votes
0
answers
529
views
bash: C:Usersha_haAnaconda3/etc/profile.d/conda.sh: No such file or directory
I am using Windows. Whenever I launch git bash I get the following error message
bash: C:Usersha_haAnaconda3/etc/profile.d/conda.sh: No such file or directory
I think some of the path separators are \...
1
vote
0
answers
527
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&...
0
votes
2
answers
1k
views
How to launch the WLS shell from a GitBash shell on Windows 10?
GitBash is one of the options one has to operate a Bash environment directly inside Windows. However, there now is the option to use the Windows Linux Subsystem (WLS), that can be launched from the ...
1
vote
2
answers
1k
views
Windows Terminal with git-sdk autocomplete for git doesn't work
I am using git-sdk in my Windows Terminal. "profiles"/"list" entry for it looks like this:
{
"guid": "{00000000-0000-0000-ba54-000000000002}",
"...
0
votes
1
answer
133
views
Decrease disk space requirements for git-annex on Windows
Currently, I am evaluating git-annex to track larger files on disconnected media.
After adding files to annex on Windows, I noticed that the disk space doubles as hashed content resides in the workdir ...
2
votes
1
answer
2k
views
Setting background image in Git Bash with Windows Terminal
I have Git Bash running in my Windows Terminal, but I have trouble setting the background image, which is only visible in the right strip of the terminal window (it's cropped, not squished):
At first,...
1
vote
0
answers
703
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
0
answers
412
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 ...
0
votes
0
answers
270
views
Git Bash: Windows 10 text is blurry and hard to read
I just set up a Windows 10 box, and the Git Bash terminal is giving me trouble. The output of a git command, like my uncommitted files in red, is blurry (fuzzy) and very hard to read. I found another ...
1
vote
0
answers
319
views
Why does my git bash shell show up as a separate tile in my task bar, when running as admin? [closed]
EDIT:
Other SE users cannot reproduce this so it's likely an issue with my company's GPO. Holding open until I can send my helpdesk a link to this write-up.
I use Git for Windows, on Windows 10. ...
1
vote
2
answers
1k
views
Opening a file through Git Bash using a particular software (For Windows)
I want to open a file through Git Bash command prompt using a particular software then what is the command for it.
Example:- I am in the directory /c/users/user and I want to open a file named text....
0
votes
0
answers
98
views
Passing BibteX options in Vim-Latex
My current Latex workflow involves using Mendeley to automatically create .bib files. These bibfiles are stored in a Mendeley directory in my home folder. Because I don't want to have all my projects ...