jesseduffield / lazygit

simple terminal UI for git commands
MIT License
50.44k stars 1.78k forks source link

Lazygit constantly tries to connect to the remote repository automatically #3734

Open Guelakais opened 2 months ago

Guelakais commented 2 months ago

Describe the bug Every time I start lazygit, lazygit tries to connect to the remote repository. Most of the time it has no access authorisation. This has led to me being locked out of my repository several times.

To Reproduce Steps to reproduce the behavior:

  1. type Layzigit into the shell.
  2. layzigit tries to connect to the remote repository.
  3. Connection error, because of course the correct ssh key was not entered every time.
  4. See error

Expected behavior Layzigit should not constantly destroy my access authorisation and manage my repository locally.

Version info: commit=v0.40.2, build date=2023-08-12T17:47:33Z, build source=binaryRelease, version=0.40.2, os=linux, arch=amd64, git version=2.43.2 git version 2.43.2

mark2185 commented 2 months ago

You might want to set auto fetch to false:

git:
  # If true, periodically fetch from remote
  autoFetch: false

Related documentation.