将Jekyll布署完了之后用git push origin master
提交更改时发现类似
Username for 'https://github.com':
Password for 'https://USERNAME@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/USERNAME/OTHER.github.com.git/'
这样的问题,于是仍旧Google之,得之,这里说了两种方法,我比较懒,于是用了第二种方法(偷偷地说一句,主要是我原来设定过Github里的SSH key,请自动忽略此句^_^),看这里,
git remote set-url origin git@github.com:USERNAME/OTHERREPO.git
之,就可通过SSH的方式来提交更改了(当然前提是Github的ssh已设定好)。
Qing Fan 06 May 2016