2
Good morning, I’m learning to use git and need to check out a branch.
I did the clone in git:
$ git clone https://[email protected]/teste/teste-site.git
Cloning into 'teste-site'...
remote: Counting objects: 10818, done.
remote: Compressing objects: 100% (7681/7681), done.
remote: Total 10818 (delta 2982), reused 10588 (delta 2849)
Receiving objects: 100% (10818/10818), 420.92 MiB | 3.22 MiB/s, done.
Resolving deltas: 100% (2982/2982), done.
Checking connectivity... done.
Checking out files: 100% (11415/11415), done.
And after that I made the command:
$ git checkout master teste-site.git
fatal: Not a git repository (or any of the parent directories): .git
But this error returns to me
fatal: Not a git Repository (or any of the Parent Directories): . git
How do I resolve?
The problem is that it did not enter from the directory in which the repository was cloned before checking out the branch. The hugomg’s answer is the correct one, I believe
– Luiz Cavalcanti
"The command you used is invalid because it points to a directory that doesn’t use git." That’s what I put, and my intention was to show a little bit about these basic git commands, since we can see that it doesn’t have much familiarity.
– guiandmag