3,502 questions
0
votes
0
answers
39
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
1
answer
85
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 ...
-1
votes
2
answers
133
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 ...
-3
votes
2
answers
156
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 ...
2
votes
1
answer
149
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, ...
0
votes
1
answer
283
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
140
views
Supabase CLI: Cannot type password (IME issue) in Windows Git Bash (Zsh/PowerShell)
I'm a complete beginner developer working on Windows 10/11, using Git Bash (with Zsh shell) as my terminal. I'm encountering a critical issue when trying to log in or link my project using Supabase ...
0
votes
0
answers
38
views
How to use git bash as the SHELL in a windows Dockerfile where bash is already installed
Here is my windows Dockerfile:
FROM mcr.microsoft.com/windows/servercore:ltsc2022 AS installer
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $...
0
votes
0
answers
65
views
Git Fetch - Permission Denied, Unable to Write File
I know this issue has been posted about multiple times, but none of the answers on any other question has helped.
git fetch --depth=601 remote: Enumerating objects: 35562, done.
remote: Counting ...
0
votes
1
answer
341
views
git commit is very slow when precommit hook is activated
Here is my precommit hook (found on stack overflow) :
#!/bin/bash
# taken from : https://stackoverflow.com/questions/39576257/how-to-limit-file-size-on-commit
hard_limit=$(git config hooks....
1
vote
1
answer
106
views
How to set the Git Bash Vim's color file outside of "Program Files"
I'm using Windows, in Git Bash, if I use vimdiff as the compare tool, Git will trigger the vimdiff in its package.
However, it's hard to add a new color scheme, e.g. gruvbox.
Git's vim is in C:\...
1
vote
1
answer
230
views
Git Bash on Windows: *"Error connecting to agent: No such file or directory"* when using Windows OpenSSH Agent
I’m using Git Bash on Windows, and I'm trying to use the Windows OpenSSH agent to manage my SSH keys. Despite successfully starting the SSH agent as a service, I encounter the following error when ...
0
votes
0
answers
34
views
Mounting Data file using docker
I am trying to mount data using a docker container. It doesn't ever seem to mount and I don't know what I am doing wrong. I am using the git bash terminal.
I am inside the folder called "...
0
votes
1
answer
52
views
VS Code terminated the bash terminal with code 2 after startup using args --login -i --rcfile .bashrc
How can I run the bash terminal in VS Code using my .bashrc which is located in the project directory?
I wrote the arguments for launching the bash terminal in settings.json
VS Code settings.json
...
1
vote
1
answer
170
views
GitHub PAT cannot modify workflow files
AIM: To modify one GitHub Actions .yaml file by running another GitHub Actions file. Specifically, I want to randomize the cron schedule of the other file.
PROBLEM: It gives error
! [remote rejected] ...
0
votes
0
answers
78
views
How to resolve a merge conflict using command line or github [duplicate]
I submitted a few files, all to separate branches and made a PR. But my PRs were closed with unmerged commits because I had to fix some issues with my code. I resubmitted after and made new PRs but ...
0
votes
0
answers
40
views
gitbash creates a new empty .npmrc file everytime it opens
Everytime i open a new gitbash terminal, then a new empty .npmrc file is been created and it overwrites the existing config file (if one was existing).
I work on windows. I uninstalled git for windows ...
0
votes
0
answers
30
views
Why a long line printed by python in gitbash or cygwin become broken (multiple) lines when being copy and pasted?
I have a python program that prints some examples so that users can copy and paste to run. The examples are all long lines.
I noticed that when python printed a long line in gitbash, and then I copy ...
0
votes
0
answers
29
views
How does VS Code integrated terminal populate environment variables on startup?
Please, find below a few environment variables I can see in the VS Code integrated git-bash:
~$ for var in PSMODULEPATH LIB LIBPATH INCLUDE EXTERNAL_INCLUDE ORIGINAL_PATH PATH; do echo "\${#$var} ...
0
votes
1
answer
147
views
git bash on Windows: when press ESC key multiple times, then will be blocked
When using git bash on Windows, pressing ESC key for multiple times, then the input will be blocked. And after several seconds or more, it might show below information:
MyHome+tomxue@DESKTOP-I23OD70 ...
0
votes
0
answers
41
views
FATAL: R any reponame username DENIED by fallthru
I have added my .pub key for the repo access .
tried with ssh -T hostname for testing and it's working perfect.
But while trying to clone the repository, I'm getting error like this:
FYI, I'm using ...
1
vote
1
answer
31
views
$REMOTE point to different branches in git merge vs. rebase?
I want to configure kdiff3 to use a specific order for windows (from left to right): $REMOTE | $BASE | $LOCAL. However, I encountered an issue where $REMOTE differs between merge and rebase commands.
...
0
votes
1
answer
41
views
How to find and remove code block accross multiple html files in subdirectories
Lets say I’m working on a project where I need to remove a specific block of SEO-related code from hundreds of index.html files located in various subdirectories within a root directory. Here's the ...
2
votes
3
answers
150
views
How to Customize Git Bash Prompt to Show Subdirectories After a Specific Folder (Similar to Codespace)
I’ve been using Git Bash on Windows, and recently, I had the chance to try Codespace. I loved how the Codespace terminal setup was very clean and simple.
When you open the terminal, there is no path ...
1
vote
1
answer
72
views
Why does variable=$(cd any/path && git <any command>) not work in a git hook? [duplicate]
I am trying to format the committed source code inside my pre-commit hook, but I only want to execute this hook when I am in a specific repo. My "clever" way of checking I am in this repo is ...