Git: force user and password prompt

后端 未结 6 1679
小鲜肉
小鲜肉 2020-12-04 13:13

I recently updated my local Git installation to 1.8.1 from 1.8.0.1.

I\'m noticing that, when I work on GitHub, it doesn\'t prompt me for

6条回答
  •  鱼传尺愫
    2020-12-04 13:53

    None of those worked for me. I was trying to clone a directory from a private git server and entered my credentials false and then it wouldn't let me try different credentials on subsequent tries, it just errored out immediately with an authentication error.

    What did work was specifying the user name (mike-wise)in the url like this:

       git clone https://mike-wise@collab.somewhere.net/someuser/somerepo.git
    

提交回复
热议问题