【发布时间】:2023-04-06 00:29:01
【问题描述】:
我想在不输入用户名的情况下推送github并且每次都通过。
使用 Ubuntu 终端,git 每次都会询问我的用户名和密码,当我在 MacOS 中推送时,它没有发生。 我在下面设置了正确的全局设置。
git config --global user.name "username"
git config --global user.email "my@email.com"
看到了,(Why Git is not allowing me to commit even after configuration?) 并尝试过
git config --unset --local user.name
git config --unset --local user.email
但是什么也没发生……请帮帮我。
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = https://github.com/username/sh
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
【问题讨论】:
-
user.name和user.email与身份验证无关。这些设置只是或创作信息。
标签: github