-
Notifications
You must be signed in to change notification settings - Fork 22
Troubleshooting
This plugin is based on the assumption that git lock commands work in your terminal, so the first step if something doesn't work is to open it (on Windows for example Windows Key > "cmd"), navigate to your repository, then check if something's wrong by entering this command for example:
git lfs locks
Here are a few errors we encountered and ideas on how to fix them...
- Commit your work, then unlock the file
OR
- Stash your work, unlock the file, re-apply your stash
- Ask the repository admin or the owner of the lock to unlock it, if you really need it
Try Updating Git for Windows (shortcut available in the plugin's preferences)
If you’re using SSH authentication, it might be that the command line can’t connect properly:
- Open the Services window (Windows key > “services” > Enter key), double-click on “OpenSSH Authentication Agent”
- Set the Startup type to “Automatic” and press “Start” under “Service status”
- Open a powershell terminal (Windows key > “powershell” > Enter key) and input the following command
ssh-add C:\pathToMySSHFile\id_rsa
SSH files are often located in your user directory, inside the “.ssh” folder
- Then input the following command
setx GIT_SSH C:\Windows\System32\OpenSSH\ssh.exe
- Reboot
It might also be another ssh-related problem, in this case open a windows command line, try a git fetch and see what error message is displayed.
- Github is probably not working properly, you can wait a few minutes then check https://www.githubstatus.com/ for updates.
⚠️ It’s a dangerous operation ! The only valid exception to this rule is for cherrypicked commits, which trigger conflicts even if they shouldn’t.- You can use the following command in your git repository to disable the verification on push:
git config --local lfs.https://github.com/MyUsername/MyRepository.locksverify false
- To revert to the original state, use the opposite command:
git config --local lfs.https://github.com/MyUsername/MyRepository.locksverify true