常用命令
Git 配置终端识别名
git config –global user.email “youremail”
git config –global user.name “yourname”
Git 生成 SSH KEY 并授权 GitHub 项目处理权限
ssh-keygen -t ed25519 -C “yourname@email.com“
cat ~/.ssh/id_ed25519.pub
将公钥填写到 GitHub 设置中
ssh -T git@github.com
测试连接
Git 中显示中文而非转义序列
git config –global core.quotepath false
Git 配置代理和取消代理
git config –global http.proxy http://127.0.0.1:7890
git config –global https.proxy http://127.0.0.1:7890
git config –global –unset-all http.proxy
git config –global –unset-all https.proxy
Git 添加仓库地址,替换仓库地址
git remote add origin https://github.com/utgnim/____.git
git remote set-url origin https://github.com/utgnim/_____.git
Hexo 命令
hexo –config _config.yml g & hexo –config _config_gal.yml g
