How to create a new repository?

QuestionsQuestions8 SkillsProHTML Personal WebpageOct, 06 2025
0109

To create a new Git repository, follow these steps:

  1. Open your terminal.

  2. Navigate to the directory where you want to create the repository. For example:

    cd ~/project
  3. Initialize a new Git repository using the git init command:

    git init my_project
  4. Navigate into the new repository:

    cd my_project
  5. Verify that the .git directory has been created:

    ls -a

    You should see output similar to:

    . .. .git

Now you have successfully created a new Git repository named my_project. You can start adding files and making commits.

0 Comments

no data
Be the first to share your comment!