Create Personal Access Token on Github
From your Github account, go to Settings => Developer Settings => Personal Access Token => Generate New Token (Give your password) => Fillup the form => click Generate token => Copy the generated Token, it will be something like
ghp_sFhFsSHhTzMDreGRLjmks4Tzuzgthdvfsrta
保存好这获得的token
接着:
Windows系统
点击编辑后将密码设在GitHub上刚刚获得的token
接着:
git remote set-url origin https://<githubtoken>@github.com/<username>/<repositoryname>.git
意味着将~/.git/config文件的url 设置为带token
现在git push或者git pull就可以了