【发布时间】:2021-01-19 08:00:18
【问题描述】:
我的开发环境:
PS D:\github\jqxwidgets> git --version
git version 2.30.0.windows.1
Windows 10 x64 版本 2004。我的存储库https://github.com/donhuvy/jqxwidgets(仅用于学习 jQuery 插件框架)。在我的 PC 中有 Github Desktop for Windows,但我将它用于其他项目。
(1) 我尝试配置本地 git 存储库
git config user.name "Do Nhu Vy"
git config user.email "donhuvy@outlook.com"
没用。
(2) 我尝试了本地 git 存储库的配置
git config user.name "Do Nhu Vy"
git config user.email donhuvy@outlook.com
没用。
(3) 我尝试使用 Windows PowerShell(管理员)
git config user.name "Do Nhu Vy"
git config user.email "donhuvy@outlook.com"
没用。
我不想使用git config --global ...,因为在我的电脑上有很多项目有不同的远程服务器和不同的用户。
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\WINDOWS\system32> cd d:
PS D:\> cd .\github\
PS D:\github> cd .\jqxwidgets\
PS D:\github\jqxwidgets> ls
Directory: D:\github\jqxwidgets
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 1/19/2021 2:48 PM .idea
d----- 1/19/2021 2:41 PM jqxGrid
-a---- 1/19/2021 2:39 PM 1714 .gitignore
-a---- 1/19/2021 2:39 PM 1544 LICENSE
-a---- 1/19/2021 2:39 PM 12 README.md
PS D:\github\jqxwidgets> git config user.name "Do Nhu Vy"
PS D:\github\jqxwidgets> git config --list
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=schannel
core.autocrlf=true
core.fscache=true
core.symlinks=true
pull.rebase=false
credential.helper=manager-core
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=main
user.name=vyolbius
user.email=74403808+vyolbius@users.noreply.github.com
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=https://github.com/donhuvy/jqxwidgets.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.main.remote=origin
branch.main.merge=refs/heads/main
user.email=donhuvy@hotmail.com
user.name=Do Nhu Vy
PS D:\github\jqxwidgets>
PS D:\github\jqxwidgets>
PS D:\github\jqxwidgets> git --version
git version 2.30.0.windows.1
PS D:\github\jqxwidgets>
PS D:\github\jqxwidgets>
如何解决?
【问题讨论】: