24 lines
611 B
Markdown
24 lines
611 B
Markdown
---
|
|
inclusion: always
|
|
---
|
|
|
|
# Git Path on This Machine
|
|
|
|
Git is NOT in the system PATH. It's installed via GitHub Desktop.
|
|
|
|
**Always prepend this before any git command:**
|
|
|
|
```powershell
|
|
$env:PATH = "C:\Users\AndreKnie\AppData\Local\GitHubDesktop\app-3.5.8\resources\app\git\cmd;" + $env:PATH
|
|
```
|
|
|
|
Then use `git` normally. Do NOT try `where.exe git` or assume git is available without this.
|
|
|
|
## Index Lock
|
|
|
|
If you get `index.lock: File exists`, wait 3 seconds then:
|
|
```powershell
|
|
Remove-Item ".git\index.lock" -Force -ErrorAction SilentlyContinue
|
|
```
|
|
This happens because Kiro's git integration watches the repo.
|