How to resolve fatal: $HOME not set error?

Viewed 36

I am running git config --system user.email "<email>" on linux via Azure-pipleine.yml file.

After which I get, fatal: $HOME not set What is this error and how can I resolve this ?

1 Answers

(from your comments)

Reverting to a commit and pushing should be done from someone's workstation, with a clone of the repository. No need to go through Azure pipelines for this.

The user.email field in git is used to say who has created a commit (the name you see when you run git log or you inspect the history of your repo on the web GUI of Devops), it has nothing to do with ssh credentials. ssh credentials should be fixed by using an ssh key recognized by your central Azure Devops repository.

The most common way is to set up your .ssh/config file to give the correct ssh key when connecting to your Azure Devops server.

Related