Home » Questions » Computers [ Ask a new question ]

Git remote add doesn't work

Git remote add doesn't work

I'm trying to add a remote server from my git bash prompt with something like:

Asked by: Guest | Views: 218
Total answers/comments: 1
Guest [Entry]

"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."