How do I install git-credentials-manager?

I wanted to use git clone to clone a private directory to my computer, but i have to authorize myself. But when running git-credential-manager configure, I get the following output: bash: /usr/local/bin/git-credential-manager: cannot execute binary file: Exec format error How can I use it resp. authorize myself?

2 Likes

Consider using key-based authentication:

You are trying to run an x86_64 binary on an arm64 system. That won’t work. git-credential-manager doesn’t appear to have arm64 Linux releases, so you have to build it yourself from source.

With al due respect, – I am sorry but this is no answer to the question. git-credential-manager-core seems to be the modern cross-platform way for authenticating to git registries. You can also use libsecret as an alternative, but this does not solve the issue that you maybe want the modern alternative.

Their Readme explains the advantages quite well:

Git Credential Manager (GCM) is a secure Git credential helper built on .NET that runs on Windows, macOS, and Linux. It aims to provide a consistent and secure authentication experience, including multi-factor auth, to every major source control hosting service and platform.

GCM supports (in alphabetical order) Azure DevOps, Azure DevOps Server (formerly Team Foundation Server), Bitbucket, GitHub, and GitLab. Compare to Git’s built-in credential helpers (Windows: wincred, macOS: osxkeychain, Linux: gnome-keyring/libsecret), which provide single-factor authentication support for username/password only.

GCM replaces both the .NET Framework-based Git Credential Manager for Windows and the Java-based Git Credential Manager for Mac and Linux.

Currently, when ones searches for “fedora git-credential-manager core” this answer here comes up quite at the top and it’s quite a generic question, so I am not only considering this about Asahi Linux, but Fedora in general.
Is not there a Fedora package for this?

Btw for Ashani tough, the latest release seems to have ARM64 binaries: Release GCM 2.6.1 · git-ecosystem/git-credential-manager · GitHub

As far as i know terra repository provide direct package management for fedora to git credential manager.
and try with this
sudo dnf install git-credential-manager

1 Like