可以通过在notebook的Git配置中添加用户名和PAT来避免每次输入的繁琐。
在notebook中的终端中输入以下命令:
git config --global user.name "your-github-username" git config --global user.email "your-github-email" git config --global credential.helper store
然后,在第一次推送或拉取时,需要输入一次用户名和PAT,之后就会缓存这些信息,之后就不需要再次输入了。