如何在 vs 代码中删除 git.lab.com 的个人令牌访问
How to delete personal token access from git.lab.com in vs code
我是第一次使用 vs 代码在我的 Mac 笔记本电脑上设置 git.lab。在设置我的站点的个人访问代码时。我已经为 git.lab.com(默认站点)输入了代码,您能否指导我将这些详细信息保存在 gitlab 中的位置以及如何删除它。
在 Gitlab 上转到用户首选项(右上角,首选项),然后在左侧导航栏中 select Access Tokens
。
或者按照这个 link: https://gitlab.com/-/profile/personal_access_tokens
在 'Active personal access tokens' 和 Revoke
下搜索您的令牌。
使用 GitLab 15.0(2022 年 5 月)更容易:
Revoke a personal access token without PAT ID
In previous versions of GitLab, personal access tokens could be deleted only by the ID.
Because none of the endpoints return an ID from a given value, you couldn’t delete a personal access token if you only had the token value.
You can also now use the personal_access_tokens/self
endpoint to
revoke a PAT with a single request.
The endpoint revokes the PAT used to make the request, making it easy to quickly revoke PATs in case of a leak.
Thank you Hemanth Krishna for your contribution!
See Documentation and Issue.
我是第一次使用 vs 代码在我的 Mac 笔记本电脑上设置 git.lab。在设置我的站点的个人访问代码时。我已经为 git.lab.com(默认站点)输入了代码,您能否指导我将这些详细信息保存在 gitlab 中的位置以及如何删除它。
在 Gitlab 上转到用户首选项(右上角,首选项),然后在左侧导航栏中 select Access Tokens
。
或者按照这个 link: https://gitlab.com/-/profile/personal_access_tokens
在 'Active personal access tokens' 和 Revoke
下搜索您的令牌。
使用 GitLab 15.0(2022 年 5 月)更容易:
Revoke a personal access token without PAT ID
In previous versions of GitLab, personal access tokens could be deleted only by the ID.
Because none of the endpoints return an ID from a given value, you couldn’t delete a personal access token if you only had the token value.You can also now use the
personal_access_tokens/self
endpoint to revoke a PAT with a single request.
The endpoint revokes the PAT used to make the request, making it easy to quickly revoke PATs in case of a leak.Thank you Hemanth Krishna for your contribution!
See Documentation and Issue.