git错误:fatal: Not a git repository (or any of the parent directories): .git

来源:互联网 发布:js形参和实参不匹配 编辑:程序博客网 时间:2024/04/29 21:20

fatal: Not a git repository (or any of the parent directories): .git

This tells you that the directory you're in is not a git repository. Before you can add remote servers, commit things and so you must have a git repository created.

In a git repository there's a directory (which can be hidden) named .git. It contains metadata on the repository and all the data regarding the checked files.

To create it type git init in the directory you wish to have a git repository. Then you could add remote servers and perform operations on it.

原创粉丝点击