1、带gitclonetokens的写法$ git clone https://token @ github.com/* * */* *例:
$ git clone https://GHP _ syx mov8 spwojiwppttvcllbe 63k v4 mbw 7x @ github.com/aa/aa.git 2,带gitremotetokens的写法$gitremote3333
在$ git remote https://GHP _ syx mov8 spwojiwppttvcllbe 63k v4 mbw 7x @ github.com/aa/aa.git 3和github中创建tokens的方法是在github的git操作中通过路径
这是在github中创建tokens的官方方法。 创建个人访问令牌
1、在任意页面的右上角,点击个人资料照片,然后点击设置。
2、在左侧边栏中,点击开发者的设置。
3、在左侧边栏中,点击个人访问令牌。
4、点击生成新令牌。
5、指定令牌的说明性名称。
6、要设置令牌的过期时间,请选择“过期时间”下拉菜单,然后单击默认值或使用日历选择器。
7、选择授予此令牌的范围或权限。 要使用令牌从命令行访问存储库,请选择repo。
8、点击生成令牌。
4、在命令行上使用令牌获取令牌后,在HTTPS上执行Git操作时可以输入而不是密码。
例如,在命令行中键入以下内容:
$ git clone https://github.com/username/repo.git username 3360 your _ username password 3360 your _ token个人访问令牌是https 如果存储库使用SSH远程URL,则必须将远程从SSH切换到HTTPS。
如果系统不提示您输入用户名和密码,则凭据可能已缓存在计算机上。 可以更新密钥串的凭据,以用令牌替换旧密码。