How can you create a repository in Git?

  • To create a repository, create a directory for the project if it does not exist
  • Run command “git init”. By running this command .git directory will be created in the project directory, the directory does not need to be empty