How to input password to git pull command?

前端 未结 3 1333
面向向阳花
面向向阳花 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 13:04

    Synopsis:

    git pull "https://:@github.com//.git" 
    

    Example:

    git pull "https://admin:12345@github.com/Jet/myProject.git" master
    

    Note: This works for me on a bash script

提交回复
热议问题