Error:Current directory is not a git directory!
See original GitHub issueDescription
There is an error in v8.2.0,Current directory is not a git directory!
Steps to reproduce
I have this problem when I installed the new version of lint-staged. I think it may be because my .git is in the upper level of the installation directory. install path:/web-front/src-new/node_modules/lint-staged .git path: /web-front/.git
Debug Logs
Environment
- OS: macOS High Sierra
- Node.js: v10.14.1
lint-staged
: v8.2.0
Ps
This should be because you changed the way get the .git directory in the new version. husky issue: https://github.com/typicode/husky/issues/500 your commit: https://github.com/okonet/lint-staged/commit/6ac666d
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:27 (10 by maintainers)
Top Results From Across the Web
Not a git repository" when attempting to remote add a Git repo
You'll get this error if you try to use a Git command when your current working directory is not within a Git repository....
Read more >Git error - Fatal: Not a git repository and how to fix it | Datree.io
A Git command needs to be run on a specific repository, so this error typically occurs when a Git command is run in...
Read more >Solving “Fatal: Not A Git Repository” (Or Any Of The Parent ...
The error above, fatal: not a git repository (or any of the parent directories): .git , states that you tried to execute a...
Read more >How to Fix the “fatal: not a git repository” Error - ContainIQ
In short, the fatal: not a git repository error indicates that your current working directory isn't tracked by Git. If you find yourself...
Read more >fatal: not a git repository (or any of the parent ... - Initial Commit
What the error is telling you is that you issued a Git command, (usually within a command line shell), inside a directory that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
figured it out…
🎉 This issue has been resolved in version 8.2.1 🎉
The release is available on:
Your semantic-release bot 📦🚀