因为docker自动更新hugo不方便,遂新建hugo目录,重新git一个content目录,太久不用老忘记命令,其实很简单,就3条命令:
git init
**git remote add origin https://gitee.com/****.git **
git pull origin master
要解决每次git pull都要输入用户名和密码:
git config --global credential.helper store
如果git pull提示“There is no tracking information for the current branch.”,运行:
git branch --set-upstream-to=origin/master master