Hot answers tagged

2 votes

`git commit` is stuck on macOS Ventura

It turns out my problem is not Mac related at all, gpg commit signing gets stuck. See the following questions for resource: https://unix.stackexchange.com/questions/382279/gpg-hangs-when-private-keys-...
maciek's user avatar
  • 131
2 votes

fatal: unable to access ... Recv failure: Connection reset by peer

I had the same problem as you, and finally, I solved it. First try this: git config --global --unset http.proxy git config --global --unset https.proxy and git config --global user.name "...
Fikri's user avatar
  • 21
1 vote

Change default app for all .gitignore files

I believe the way you used duti will only work for files with the 'gitignore' file extension. However since the '.' is the first character, macOS does not see it as a filename extensions, but rather ...
itspete's user avatar
  • 561
1 vote

npm and git is very slow in some folders

I just found that Microsoft Defender was installed when I was not noticing, and it was the problem. I uninstalled it and everything's fine now.
Jiho Park's user avatar
1 vote

git dlopen libykcs11.dylib not found macOS 12.5 arm64

Well, I finally found it. I was editing my ~/.ssh/config for other reasons and I found the following entry for our internal GitHub Enterprise repository: Host <our internal repo> ...
grolfs's user avatar
  • 21
1 vote

How to remove default Git or update it?

Please just install the Homebrew version of Git that is updated regularly. Disabling SIP — and removing Git — can be done but it is honestly a bad idea. While technically possible to do — as John K’s ...
Giacomo1968's user avatar
  • 5,542
1 vote

How to remove default Git or update it?

I am generally not experienced enough to risk messing with system libraries (or anything that comes pre-installed with macOS). For this reason, I leave this answer for anyone else that may be in a ...
stevec's user avatar
  • 4,637
1 vote
Accepted

Can not delete file on removable device

The file, pack-f9012a97f8775c87b9d24fc0b4c276b883a6eb6a.pack, has the user immutable flag set. The field before the path/filename from the output of stat contains the file_flag (lock) which is 0x2 (...
fd0's user avatar
  • 10.6k
1 vote

Gihub on Mac using oath2

Github supports multiple formats for authentication, but username & password is not one of them. You can generate a personal access token in the Developer settings and use that in place of a ...
Ezekiel's user avatar
  • 8,354
1 vote
Accepted

Brew can not find git

I suggest uninstalling homebrew and then reinstalling it and your packages following this guide. Although this would seem to be more tedious than fixing the PATH to git, a clean uninstall/reinstall is ...
JRFerguson's user avatar
1 vote

zsh: bus error with git on SMB volume

I had the same problem with a git repository on SMB (using git version 2.42.0 from Homebrew). Unmounting the SMB share and mounting it again seems to have fixed it.
Jonas Due Vesterheden's user avatar
1 vote

zsh: bus error with git on SMB volume

I encountered the same error, and it seemed to be linked to using Git through Xcode's Command Line Tools. To resolve the issue, I decided to install Git separately via Homebrew. Here's what I did: ...
sknflskdvnoksdn's user avatar
1 vote

SSH key not being added to ssh-agent automatically

Your ~/.ssh/config file has a slight error in the hostname line. Host *.github.com AddKeysToAgent yes IdentityFile ~/.ssh/github *.github.com will only match subdomains of github.com. Your ssh -...
Randall's user avatar
  • 125
1 vote
Accepted

Using multiple github accounts with ssh keys, works only first try on each account

I found out I was missing IdentitiesOnly yes. My final config looks like this: Host github-personal HostName github.com IdentityFile ~/.ssh/id_ed25519 IdentitiesOnly yes Host github.com ...
Mooze's user avatar
  • 21
1 vote
Accepted

What exactly are "git pack objects"? Why are they so huge in the "homebrew-core" repo? We are talking about half a GB of metadata

The relevant documentation from git is https://git-scm.com/book/en/v2/Git-Internals-Packfiles Basically they contain the history of all the files that have and are in the repository. This can be ...
mmmmmm's user avatar
  • 29.8k

Only top scored, non community-wiki answers of a minimum length are eligible