Comments (2)
Per philb's answer to How to correct git
reporting detected dubious ownership in repository
without adding safe.directory
when using WSL?:
I understand you installed a new version of Git for Windows, which includes Git Bash. Newer versions of Git, starting with 2.35.2 and 2.36, including Git for Windows, are stricter about directory ownership: https://github.blog/2022-04-18-highlights-from-git-2-36/#stricter-repository-ownership-checks.
When you use
git
from Git Bash, you use the Windows program, even if youcd
to the//wsl$/
mount. Git for Windows does not have any special code to deal with the permissions of the WSL mount, so that's why you get the error. You can't fix that without modifying the Git source code.An alternative could be to use
wsl git
instead ofgit
when in Git Bash, which would then use the Linux executable.Or, as you wrote, just use
git config --global safe.directory '*'
to bypass that security feature if you do not consider yourself at risk.[Editor's Note: If you are using Windows Command Prompt, do not add single-quotes to the asterisk, i.e.,
git config --global safe.directory *
.]
from synectic.
Using git config --global safe.directory '*'
in PowerShell on Windows disables this security feature and allows Synectic to interact with the underlying git
application on Windows. This information will be noted in the Installation Guide.
from synectic.
Related Issues (20)
- `ENOENT: no such file or directory, getRoot` error thrown when branch is "prunable"
- Undo/Redo actions in Synectic editors using `redux-undo`
- `Manifest version 2 is deprecated, and support will be removed in 2023`
- Cache subscriptions drop multiple reserves on `metafiles/switchBranch` action
- Use `createAsyncThunk.withTypes<>()` from RTK 1.9 for pre-typed `createAsyncThunk`
- `FSCache` event handler uses stale `reserved` state when updating cache after edit/save
- Multithreading Redux Actions HOT 3
- Deprecate and replace `uuid` library with built-in JavaScript `Crypto` library
- Improve return type of `utils.removeUndefinedProperties` to exclude `never` properties HOT 4
- Upgrade to React 18 HOT 1
- Upgrade to Yarn 4 HOT 1
- Installation via `deb` package fails on Ubuntu Linux HOT 2
- `+[CATransaction synchronize] called within transaction` on MacOS HOT 1
- Checkout or switch to remote-only branch results in `fatal: ambiguous argument '<branch>': unknown revision or path not in the working tree.` HOT 1
- `fatal: cannot lock ref 'refs/heads/extra'` on Windows HOT 1
- Switch `electron-forge` for `conveyor` packaging tool HOT 5
- Bundler updating HOT 5
- Option to delete files
- Visual overlapping (`z-index`) when cards expanded into fullscreen mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from synectic.