问题:
I cloned a Git repository from my GitHub account to my PC. 我从GitHub帐户克隆了一个Git存储库到我的PC。
I want to work with both my PC and laptop, but with one GitHub account. 我想同时使用PC和笔记本电脑,但要使用一个GitHub帐户。
When I try to push to or pull from GitHub using my PC, it requires username and password, but not when using the laptop! 当我尝试使用PC推送或从GitHub拉出时,它需要用户名和密码,但在使用笔记本电脑时则不需要!
I don't want to type my username and password every time I interact with origin. 我不想每次与Origin交互时都输入用户名和密码。 What am I missing here? 我在这里想念什么?
解决方案:
参考一: https://stackoom.com/question/RXwr/Git-Push需要用户名和密码
参考二: https://oldbug.net/q/RXwr/Git-push-requires-username-and-password