混帐客户端 : get user info from username

标签 git github github-api

有没有办法在只给定用户名的情况下获取用户名?

类似这样的输出 git show <username> (我知道这行不通)

username: username
name: First Last
email: email@address

我知道我可以通过 GitHub api 调用来完成此操作,但更愿意将其保留在 CLI 中。

最佳答案

git config user.name
git config user.email

我相信这些就是您正在寻找的命令。

Here is where I found them

关于混帐客户端 : get user info from username,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7552054/

相关文章:

ruby - 实现 git branch --contains with rugged library

包含 merge 的目录的 Git 日志

github-api - 从电子邮件或姓名获取 GitHub 头像

github - 如何正确更新我的 Octopress 博客

python - 将 curl PUT 转换为 Python 请求的问题 : "Problems parsing JSON"

github - 如何以编程方式识别 fork 的 github 存储库?

git - 如何在删除工作目录后删除 git 工作树分支?

git - 如何 "toggle"git-log的日期格式?如何在同一个 git 日志中同时显示相对日期和绝对日期?

git - Google Code 有什么可以与 GitHub pull 请求相媲美的吗?

git - 如何修改旧的、推送的提交,并在其后推送新的提交