English 中文(简体)
我想,Gite Hub每次都问用户名和密码如何实施守则
原标题:I wants GitHub ask username and password every time on commit code

我有两个系统,一个设在办公室,另一个是个人邮件和两个电子邮件。 我想设立Gite Hub,我想组成一个两个电子邮件小组。 我用手法确定,在我推动或实施法典时,我会问密码和用户名称,但我只想Gite Hub在我推动法典安全时每次问它。 它还没有从事清点工作,如果有任何解决办法,或者我利用任何其他服务?

问题回答

在Unix(例如,第1737(2006)号决议)上,你可以尝试行使以下指挥权。

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

这样做只会使您的信念达到30秒。 例如,在30秒之后,如果你<><<>条码>, 存放在VSCode,并提供您的成像(密码/PAT),那么,在VSCode采取“<<>push行动时,关键因素即为时断。

详情见“git-credential-cache


在Windows,你可以尝试管理以下指挥。

git config --global credential.helper   
git config --global core.askpass   

以此方式,Gite Credential Manager将不会迎合你的信念:

  • When you clone repository in VSCode, it will ask you to provide your git credential (password/PAT).

    “enter

  • 当您对当地存放处作出某些改动时,将请您提供<><>条码><><>><>条码/>><>>和<>条码>>用户名<><>/条码>。 您需要在VSCode开放“Git Bash终端,并运行以下指挥。

    git config user.email "{your email}"
    git config user.name "{your username}"
    

    enter image description here

  • 当你从当地存放处向遥远时,它将请你再次提供你的定型(密码/PAT)。

    “enterography






相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签