I have helped many beginners to fix their GIT related issues. I can certainly say that you are facing above error as you are trying to use the Git command and your current working directory is not within your Git repository. This is because by default your Git will look for your
.git repository directory inside of your project root.
If you have already set the
GIT_DIR environment variable then it will specify that the path to use instead of your default
.git for your base of your repository.
So you need to either
cd into your repository or if you haven’t yet initialize or cloned the repository already in that case you will have to initialize your repo in your directory where you actually want to place your repo with below command :
OR you can clone a repository with below commands
git clone <remote-url>