Encountering an error when installing rails application into the project

Hi,

So recently I cloned a repo from Azure DevOps into Visual Studio 2022 and proceeded to install a rails application into the project, but encountered an error even though a ‘development’ branch had been identified.

I used the following command to try to install the Rails application

rails new . -d=postgresql

But when I use the following command to install the rails application, then the application gets installed successfully

rails new . -d=postgresql --skip-git

I want to know if there is a workaround for this error.

Regards,

Asim Khan

Hm, do you have git installed? Without being able to debug, I would guess that git is not installed on the machine.

Try running git --version, if you get nothing back, it means it’s not installed. In that case, easiest will be installing from official website: Git - Downloading Package

If you do have git, can you try just manually running git config init.defaultbranch directly on the command line and see what you get?

Hello,

Thank you for the response. Yes I did sensed that might be the issue, and I downloaded and re installed the Git into the system, added it to the environment variables and the issue has been resolved.

Regards, Asim Khan