type
status
date
slug
summary
tags
category
icon
password
本节内容将介绍:如何在GitHub上创建token令牌。
📝 GitHub token令牌申请及使用:
1.登录GitHub网站,点击右上角头像里面的Settings:

2.然后找到左侧列表最下面的Developer settings:

3.找到Personal access tokens,选择里面的Tokens(classic):

4.然后选择右上角Generate new token里面的Generate new token(classic):

5.然后进去设置token有效期,访问权限等:

6.生成令牌,并保存


7.把token直接添加的远程仓库链接中,这样可以避免同一仓库每次提交代码都要输入token了
(添加方法:在git命令行中输入 git remote set-url origin https://得到的token令牌@github.com/用户名/仓库名.git)
8.之后就可以使用git push上传代码。
请注意:
要使用token从命令行访问仓库,请选择repo;
要使用token从命令行删除仓库,请选择delete_repop;
其他根据需要进行勾选;
然后生成令牌过后,记得把token保存下来,因为 你再次刷新网页的时候,你已经没有办法看到它了。
🤗 总结归纳
本节介绍了如何在GitHub上创建token令牌,如有疑问欢迎咨询。
📎 参考文章
有关git安装或者使用上的问题,欢迎您在底部评论区留言,一起交流~
- Author:Naipings
- URL:https://naipings.cn/article/git05
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!
Relate Posts