Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page
Help Center/ CodeArts Repo/ FAQs/ Troubleshooting/ Message "Not a git repository" Is Displayed

Message "Not a git repository" Is Displayed

Updated on 2023-12-04 GMT+08:00

Symptom

The message Not a git repository is displayed after the git add command is executed.

Analysis

The current directory is not the repository directory.

Solution 1

Obtain the path of the repository directory. Run cd repository name to check out the repository and run add again.

Solution 2

Run git init to initialize the current directory as a repository, and then run git add again.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback