3,502 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
76
views
Git for Windows : bash.exe not found
I try to start Git Bash (Git for Windows) on a DOS shell but get the error message:
>C:\APPS\Git\bin\bash.exe
Skipping command-line '"C:\APPS\Git\bin\..\usr\bin\bash.exe"'
('C:\APPS\Git\...
0
votes
0
answers
72
views
git-bash gettext wrong encoding
I'm trying to translate my bash scripts using the gettext tools but I have a problem where the encoding seems to be wrong.
Let's say I have the following file called fr.po:
# French translations for ...
2
votes
1
answer
71
views
In Windows Git Sparse Checkout does not work as expected and downloads unwanted files
I have a folder structure in a Git Repo like the following:
.
└── top_level/
├── invalid_file_names/
│ ├── <?>.txt
│ └── <<>>?.txt
└── valid_files/
├── ...
0
votes
0
answers
49
views
Getting an 'Not a tty' error when running python .exe that generates a QR Code in Git Bash
Failing in GitBash when trying to use python to generate a QR Code. Fails on the print line. Works find on windows device.
Error Message:
Traceback (most recent call last):
File "awsauth.py&...
1
vote
0
answers
71
views
redirect STDERR in git-bash for Windows (11) not working any more
I have been using a bash script on my Windows environment for a long time to automate certain git commands. With a new Windows 11 installation I get a completely unexpected problem with the script: ...
1
vote
1
answer
87
views
How do I provide the correct file paths to merge-doc.js in Git config using Git bash in Windows?
I'm trying to use the merge-doc.js script in my Git config for merge driver and mergetool for .docx, but the TortoiseGit helper script that starts a compare in Word using DCOM requires absolute paths ...
2
votes
2
answers
196
views
Function doesn’t update global array
I wrote a simple quick sort algorithm. When I run it, it echoes the same array back.
#!/usr/bin/bash
arr=(1 8 3 9 4 5 7 2)
partition() {
local low=1ドル
local high=2ドル
local pivot=${arr[low]}...
-1
votes
2
answers
150
views
Unable to create a new repository remotely [duplicate]
I am creating several new repositories and I want to automate it for a future product I am building. Got stuck on the first step. The following command works (at least there is no error message):
git ...
-6
votes
1
answer
104
views
How to create new orphan git branch and keep only one folder? [closed]
I tried this
git checkout --orphan newfeature/lk1
Inside I have
A,B,C....
my goal was delete all except the one,A
find . -name A -prune -o -print0 | xargs -0 rm
It did not work for me.
I am using ...
-3
votes
2
answers
165
views
Git switch to branch silently only partially updates working directory when extraneous directories are present
Git is behaving very strangely by silently failing to update the working directory contents when changing to a branch relative to a remote under certain conditions, e.g. if there is an empty directory ...
0
votes
0
answers
110
views
VS Code Python extension injects incorrect start up script oh-my-posh variables with shell integration
The task
I'm using oh-my-posh to display extra info in the terminal for PowerShell (v7) and Git Bash.
The problem
When using Windows Terminal I can see that the theme changes are present, but in the ...
2
votes
1
answer
167
views
Emojis won't show up properly in build logs for Maven Project name on Git Bash
I have a pom file whose name looks similar to this.
<name>Some Name 😊</name>
But when I performed the maven build, I got this instead.
Some Name 🙂
I set my project encoding to utf-8, ...
4
votes
0
answers
98
views
git clone failing only in very specific circumstances [duplicate]
My system is Windows 11. I am using latest git bash from 2025年06月28日.
I am trying to clone the public github repository https://github.com/eringee/biodata (over HTTPS) / [email protected]:eringee/biodata (...
0
votes
1
answer
322
views
AugmentCode + VS Code runs PowerShell instead of Git Bash for automation tasks despite configuration
I've configured VS Code to use Git Bash as my default terminal, but when AugmentCode runs commands (like Flutter commands or tasks), it still uses PowerShell.
What I've already done:
Set Git Bash as ...
1
vote
0
answers
93
views
How do I fix a bad config error when launching jupyter from GitBash?
I'm new to this and I'm trying to learn Python. I've got Git Bash installed and Anaconda 3 and whenever I got to launch jupyter from Git Bash I get a bad config error. This is the commands I'm using ...