【问题标题】:Wordpress Vagrant VV - How to setup git?Wordpress Vagrant VV - 如何设置 git?
【发布时间】:2016-07-13 23:03:49
【问题描述】:

我正在使用 Varying-Vagrant-Vagrants 进行 Wordpress 开发。我能够建立一个新站点,当我运行vv create 时它工作得很好。但是如何将 git 设置到我的 wp-content 目录中?

我已经在wp-content 目录上运行了命令git init,在添加所有文件后,我运行git commit -m "Initial commit" 并收到以下错误消息:

gpg: skipped "username <username@emails.com>": secret key not available
gpg: signing failed: secret key not available
error: gpg failed to sign the data
fatal: failed to write commit object

(我从消息中删除了我的个人详细信息)

知道这个错误是关于什么的吗?我可以在不属于 Wordpress VVV 的其他项目上正常运行 git。

【问题讨论】:

  • 你的全局 gitconfig 文件是什么样子的?
  • user.email={{myEmailAddress}}。 Git 在不属于 Wordpress VVV 的其他应用程序上运行良好。我应该查看 gitconfig 上的任何特定键吗?

标签: wordpress git vagrant vagrant-plugin


【解决方案1】:

您需要在电子邮件顶部添加user.name。 (可能您的名字是在您的主机或其他 VM 上的 gitconfig 中设置的)。在 v-v-v VM 中你可以运行

git config --global user.name "<name>"

自动添加你的名字或编辑 gitconfig 文件

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-01-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多