IntelliJ asks several times ssh pasword in push window when "Run Git hooks" is checked

已回答

Hi Community,

  I am using IntelliJ  Ultimate 2023.3.2 and having an issue every time pushing to GitLab. In the push window, if the check “Run Git hooks” is checked, IntelliJ asks for the ssh password several times

Is there a way to avoid this? We would like to use Git Hooks.

 

Thank you.

 

0

Hi,

What do the git hooks do? 

Do any of these attempt to push the code or do anything that requires authorization? 

0

Hi Dino

 Currently, there are no git hooks.

 

 

0

I mean, when you use git hooks you mentioned, what do they do? 

0

We are planning to use a git hook that checks the format of the commit message. That's all for the moment and still no implemented

0

These commit hooks should work without any issues. 

Did you test with these hooks? 

0

Maybe, I haven't explained myself properly. There are no hooks. We are planning to have one and that's why I want to eventually have that check marked. If I push without that check, IntelliJ asks for the password once. If I check it, asks for it 5 times.

Hope I am clear now.

0

If you have that check available, that means that you have git hooks in your project. Can you please double-check? 

0

You are right, Dino. I have the default LFS hooks, as we are using LFS. It looks to me that IntelliJ asks the password for every hook (4 times). Is there a way to avoid this?

0

Yes, 

Please see: https://github.com/git-lfs/git-lfs/issues/203 , some workarounds are available there. 

0

请先登录再写评论。