Commands in a Git Script Functions (Windows) Not Working As Expected in Sub Folder Under a Git Repo
问题 I have the following folder structure... \GitRepo \.git [files] \IgnoredFolder #ignored from .gitignore \SubRepo I'm trying to right a script function in my .gitconfig file and I need to know the current directory , but I'm getting weird behavior. For all my tests, I've opened a Console2 window hosting Windows PowerShell to run my git commands. At the prompt if I type $pwd it 'correctly' displays C:\GitRepo\IgnoredFolder\SubRepo. I say 'correctly' but it is in Windows format instead of *Nix.