可以把token直接添加远程仓库链接中,这样就可以避免同一个仓库每次提交代码都要输入token了:
git remote set-url origin https://<your_token>@github.com/<USERNAME>/<REPO>.git
<your_token>:换成你自己得到的token
:是你自己github的用户名
:是你的仓库名称
git remote set-url origin https://[email protected]/shliang0603/Yolov4_DeepSocial.git/
如果 push 等操作没有出现输入密码选项,请先输入如下命令,之后就可以看到输入密码选项了
git config --system --unset credential.helper