hexo deploy 时指定git账户 #2343

Open
zewenwang opened this Issue Jan 3, 2017 · 1 comment

Projects

None yet

2 participants

@zewenwang

前提: ~/.gitconfig文件中设置的全局参数

[user]
	name = global_name
	email = global_email

然后在_config.yml中设置

deploy:
- type: git
  repo: github_repo
  branch: [branch]
  name: github_name
  email: github_email
- type: git
  repo: coding_repo
  branch: [branch]
  name: coding_name
  email: coding_email

执行hexo deploy提交后,查看github和coding,commit的作者是 global_name global_email

@zewenwang

btw, global_name github_name coding_name 均不相同。
mac os系统下配置的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment