How to input password to git pull command?

前端 未结 3 1337
面向向阳花
面向向阳花 2021-02-02 12:22

I have written scripts for Windows and Linux to essentially set up a new users workspace with all the git repositories from our server.

I would like the user to enter th

3条回答
  •  一生所求
    2021-02-02 12:53

    I would really recommend to not try and manage that password step, and delegate that (both on Linux and Windows) to git credential helper.
    See:

    • "Git http - securely remember credentials"
    • "How to use git with gnome-keyring integration"

    The user will enter the password only once per session.

提交回复
热议问题