All Questions
1,732 questions
0
votes
1
answer
78
views
VS Code's git integration is looking for filenames with the wrong casing
In VS Code, given a file, managed by git, which has been edited.
I can select the file from the Source Control sidebar and see the diff highlighted.
When I right-click on a change and select "...
1
vote
1
answer
53
views
Issue with Git Credential Access in Jenkins on Mac (M1 & Intel) – "fatal: could not read Username"
I'm using Jenkins to build on Mac M1, Mac Intel, and Linux test machines.
In my build.sh script, I need to clone a private Git repository.
On Linux, I successfully used libsecret to store credentials, ...
0
votes
2
answers
63
views
Git seems to set the `GIT_EDITOR` out of nowhere [closed]
I am trying to set the git editor to nvim by using the VISUAL and EDITOR environment variables but they are not taking affect.
When running git var -l, I see that it shows GIT_EDITOR set to vi, ...
0
votes
0
answers
61
views
How to execute git commands on console in IntelliJ using bundled Git rather than Git installed on host OS?
When I used the Terminal pane within IntelliJ IDEA 2025.1 RC on macOS 15.4 Sequoia, and execute git --version I see:
git version 2.39.5 (Apple Git-154)
And which git shows:
/usr/bin/git
That leads ...
1
vote
0
answers
83
views
Black output from git is unreadable in my terminal - how to change colors?
I cannot easily read black letters displayed on my bright-white (foreground) on dark-ish blue (background) terminal window. I want to change all the black output from a colorized git diff to some ...
0
votes
3
answers
167
views
git keeps "empty" folders when switching branches
Git leaves "empty" folders behind when switching between branches.
I say "empty" because they do contain a .DS_Store file that macOS creates automatically which is in my .gitignore ...
1
vote
1
answer
80
views
on macos, git clean <pattern> not working recurcively (like unix)
Under linux, I used to use git clean *.orig, or git clean *.orig *.swp *.swo to clean my repositories while keeping some untracked file.
For example, with the following repo status:
$ git status
...
1
vote
0
answers
56
views
Why all files marked as unversioned files after I deleted the file which named ":" on MacOS
For any reason, there's a committed file ":" in the project root directory on my branch. I tried to delete it but then all the files in my project was marked as unversioned files.
I tried to ...
-2
votes
1
answer
211
views
Apple M2, ~/.gitconfig file fails on running source ~/.gitconfig
I am trying to add some values to ~/.gitconfig file. After i add it, on running source ~/.gitconfig i see that file is not getting parsed.
It says:
source ~/.gitconfig
/Users/myuser/.gitconfig:1: no ...
0
votes
2
answers
175
views
Git difftool with Beyond Compare shows identical files as different when using --dir-diff
I'm experiencing an issue when using Git's difftool command with Beyond Compare on macOS. When I run the following command:
git difftool --dir-diff HEAD^ HEAD
Beyond Compare opens successfully, but it'...
0
votes
0
answers
30
views
Git on Mac OSX I unable to push to my owned branch on windows it works well
I always got an error when I tried to push my git repo.
git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c ...
1
vote
0
answers
29
views
bitbucket push not working even though pull is working fine (SSH)
hopefully someone can help here
Im having issues using git push (git pull works fine) - i have a SSH key set up, but still get the following error :
Unauthorized
fatal: Could not read from remote ...
0
votes
0
answers
26
views
Restore Git Log Branches in IntelliJ, using mac
Note: Previously to place this question I tried these solutions:
https://stackoverflow.com/a/72490630
https://stackoverflow.com/a/75446910
https://stackoverflow.com/a/78105822
I deleted the .idea ...
3
votes
3
answers
306
views
Git corrupted? `reword` of `git rebase -i` suddenly stopped working
TL;DR
I had been using reword instruction of git rebase -i with no problem for a few years.
However, it no longer works only in one of my local Git repositories.
Strangely, just forking the repository ...
0
votes
2
answers
2k
views
I am getting "A Lock file already exists in the repository, which blocks this operation from completing." when using GitHub Desktop
I get this error when I try to fetch or when I try to switch branches. Everything I have read online says that I need to delete the index.lock file in the hidden .git directory in my repository. The ...