type
status
date
slug
summary
tags
category
icon
password
😀
本节内容将介绍:如何在GitHub上创建token令牌。
 

📝 GitHub token令牌申请及使用:

1.登录GitHub网站,点击右上角头像里面的Settings:
notion image
 
2.然后找到左侧列表最下面的Developer settings:
notion image
 
3.找到Personal access tokens,选择里面的Tokens(classic):
notion image
 
4.然后选择右上角Generate new token里面的Generate new token(classic):
notion image
 
5.然后进去设置token有效期,访问权限等:
notion image
 
6.生成令牌,并保存
notion image
 
notion image
 
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安装或者使用上的问题,欢迎您在底部评论区留言,一起交流~
git基于http协议提交线上仓库javafx安装避坑!(IDEA)
  • Giscus
  • Cusdis
  • Utterance
Naipings
Naipings
一个普通的大学生,分享自己学习的“有趣”知识
Announcement
type
status
date
slug
summary
tags
category
icon
password
🎉 感谢您的支持 🎉
-- 点击收藏不迷路 ---
👏欢迎更新体验👏