# Git bug report: git doesn't change working directory

2 messages from 2015-10-17 to 2015-10-19. Participants: Khải, Johannes Schindelin.
Thread: https://gitlist.dev/t/40577

## Khải, 2015-10-17 01:43

Subject: Git bug report: git doesn't change working directory
Message-ID: <loom.20151017T034154-956@post.gmane.org>
URL: https://gitlist.dev/e/loom.20151017T034154-956%40post.gmane.org

```
I'm using Windows 10. Before I install git 2.6.1.windows.1, I have 
installed git 1.9.5.github.0 (by installing GitHub Desktop), it works just 
fine.
But when I installed git 2.6.1.windows.1 (from git-scm.com), I'm not able 
to use git anymore:
 - The powershell console displayed [(unknown)] instead of [master], even 
when I changed working directory to my project, it still display 
[(unknown)]
 - When I "git add" (or "git commit", "git push"), It told me an error: 
"fatal: Not a git repository: 'C:\Program Files\Git'"
After that, I returned to the old version of git - git 1.9.5.github.0, but 
the fault still there.
I think git didn't change its working directory, I have no idea.
Now, I'm not able to work with git.
Please response me as soon as possible, thanks.

```

## Johannes Schindelin, 2015-10-19 16:33

Subject: Re: Git bug report: git doesn't change working directory
Message-ID: <alpine.DEB.1.00.1510191831130.31610@s15462909.onlinehome-server.info>
URL: https://gitlist.dev/e/alpine.DEB.1.00.1510191831130.31610%40s15462909.onlinehome-server.info
In-Reply-To: <loom.20151017T034154-956@post.gmane.org>

```
Hi Kh�i,

On Sat, 17 Oct 2015, Kh�i wrote:

> I'm using Windows 10. Before I install git 2.6.1.windows.1, I have
> installed git 1.9.5.github.0 (by installing GitHub Desktop), it works
> just fine.

Good.

> But when I installed git 2.6.1.windows.1 (from git-scm.com), I'm not
> able to use git anymore:
>
>  - The powershell console displayed [(unknown)] instead of [master], even 
> when I changed working directory to my project, it still display 
> [(unknown)]
>
>  - When I "git add" (or "git commit", "git push"), It told me an error: 
> "fatal: Not a git repository: 'C:\Program Files\Git'"

Unfortunately, this is not enough information. Which options did you
choose during installation? How do you modify the PATH to be able to run
Git from Powershell? What code do you use to display `[(unknown)]`
(Powershell has *no* Git integration by default)?

Ciao,
Johannes
```
