Remove credentials from Git

后端 未结 30 1704
不知归路
不知归路 2020-11-21 10:13

I\'m working with several repositories, but lately I was just working in our internal one and all was great.

Today I had to commit and push code into other one, but

30条回答
  •  一生所求
    2020-11-21 10:46

    Try this when nothing as mentioned above is working for you.

    git config credential.helper 'cache --timeout=30'
    

    this will remove the cache every 3sec and will ask for username and password.You can re-run the command with increased timeout values.

提交回复
热议问题