Android Studio 上传GitHub

GitHub 官方说明
we announced our intent to require the use of token-based authentication (for example, a personal access, OAuth, or GitHub App installation token) for all authenticated Git operations. Beginning August 13, 2021, we will no longer accept account passwords when authenticating Git operations on GitHub.com

意思说2021 年 8 月 13 日开始 Git 操作进行身份验证时不再接受帐户密码
你用帐号密码登入的时候就会出现
invalid authentication data 404 not found - not found
https://ithelp.ithome.com.tw/upload/images/20210705/201375198d0p775Ghy.jpg

所以都用令牌登入吧!~

那我们来产生令牌吧!
首先你要有GitHub帐号

登入GitHub之後 点选右上角头像 点选设定
https://ithelp.ithome.com.tw/upload/images/20210705/20137519uOvTV5BjCL.jpg

找到开发设置
https://ithelp.ithome.com.tw/upload/images/20210705/2013751953xwwLvaUV.jpg

产生令牌
https://ithelp.ithome.com.tw/upload/images/20210705/20137519aMjiIeLMQ0.jpg

勾选权限

https://ithelp.ithome.com.tw/upload/images/20210705/20137519nJRhCfLuID.jpg

一直照着下一步就会产生令牌 会得到一段随机组成的数

接下来设置Android Studio
https://ithelp.ithome.com.tw/upload/images/20210705/20137519pgwCvPpfcY.jpg

成功登入了
https://ithelp.ithome.com.tw/upload/images/20210705/2013751949EA0mwTAA.jpg

记得设定为预设 不然每次上传都要再输入

再来把专案内容上传到储存库

创建库
https://ithelp.ithome.com.tw/upload/images/20210705/20137519WNBs3Ot17D.jpg

预设值
https://ithelp.ithome.com.tw/upload/images/20210705/20137519a43qTXKgDz.jpg

照着他下一步执行 你在Git上面就会创建库了
当然你可以在网站版新增库 , 但我觉得这样比较快

强制推送
https://ithelp.ithome.com.tw/upload/images/20210705/201375198R42NlyVYp.jpg

讯息中出现
https://ithelp.ithome.com.tw/upload/images/20210705/20137519Lmsdd7Bs2O.jpg

代表上传了GitHub了


<<:  进击的软件工程师之路-软件战斗营 第十九周

>>:  App Inventor 学习笔记 2 : 密码的张眼与闭眼

Day4 回忆篇 那个关於乖乖的传说-1

最近在某网通群组刚好有聊到,所以乾脆来写一篇文解释一下乖乖传说背後的科学论证吧 先说明缘起,到底是哪...

那些被忽略但很好用的 Web API / 简易文字编辑器

学习之後,刻意进行练习能够加深印象。 前面三天我们已经习得 DesignMode、Selectio...

Day30 :【TypeScript 不用学了】我终於完赛了!

终於完赛了!最近跑去画画,附上一幅《小王子与小狐狸》,小王子里面,最喜欢的就是他们的故事,是说画画...

django新手村8-----一个小实作

上一篇的常用特殊标签还有一个没有介绍到 url 还记得在第6篇提到的反向解析吗?在template也...

【RPA应用实例-文件类】SmartOCR + UiPath 打造文件处理流程自动化

一、认识RPA之後,最想处理文件类型的自动化 已经研究了解RPA基本概念与逻辑的企业,接下来都会开始...