On Sun, Oct 25, 2020 at 06:49:56AM -0700, Philip Oakley wrote:

[...]
> The first part is that your Git stores your versioned files locally, and it 
> stores them inside a sub-directory called `.git`. That `.git' file is 
> created when you either do the `git init` command, or clone another 
> repository. It looks like you already have a `.git` file higher up in the 
> file system path than the current working directory of that bash process. 
> Use the `pwd -W` command if on Windows to see where the bash thinks its is. 
> It may not be where you thought (there is no 'root' directory on the 
> Windows FS, just drives!).
[...]
> It is likely that you already have (because of who-knows-what) a .git repo 
> at a higher level that you think you are at (see `pwd -W` above). Use the ` 
> git 
> rev-parse --show-toplevel` (as always read the docs ;-) to see where that 
> repo is located. Once you know where that repo is located you can decide if 
> that magic command you got from the internet is the one you want (probably 
> not, as miss-typed).

I would add - just to clarify - that these commands, like `pwd -W` are to be
run from the Git bash console run the same way you did it when you did run
`git add .`.

You might just repeat that

>> I opened a folder located on my Desktop with “Git Bash Here”.

step again.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/20201025140118.y434hjhfrow7ostd%40carbon.

Reply via email to