git-ecosystem / git-ecosystem/git-credential-manager

WSL & Worktree issue : Not a git repositiory

Open
#1,789 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

platform:wsl
Dominant language
C#
Stars
9.3k
Forks
2.9k
Avg merge
7d 1h
Merged PRs (30d)
14

Description

Git is set up, just like this: https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-git

I am using WSL Ubuntu 24.04.
Windows and Linux both have Git in Version 2.47.1
This error doesn't appear on Windows, just from WSL.


Steps to reproduce: (Works with all repos i think)
Open Wsl.
make a dir to work in and cd into it.
git clone https://github.com/routerdieb/java11TxtTimebox main
cd main
git worktree add ../test123
cd ..
cd test123
git pull (or git push doesnt matter here)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the listed clone and worktree commands in WSL Ubuntu 24.04, then compare the same worktree operations on Windows. Inspect the exact failure from git pull or git push and how Git Credential Manager is invoked; done means both commands work from the WSL worktree without the repository error.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, linux, ubuntu
Domain
devtools, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.