Error when cloning Azure Repos using App Service Editor

Currently having a single instance of Web Apps and now trying to control the source code using git. I have used “clone” in Azure Repos and used the following command below to add the remote directory in App Service Editor.

git remote add origin [Azure Repos URL]

However, the console in App Service Editor shows the following Error message.

\ [master]> git remote show origin
fatal: NullReferenceException encountered.
   Object reference not set to an instance of an object.