If you want to create a repository in Git then you need to run the command “git init”. With this command .git repository you can create a directory in the project directory.