You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was not able to find an open or closed issue matching what I'm seeing
Setup
Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options
$ git --version --build-options
git version 2.24.1.windows.2
cpu: x86_64
built from commit: 992f0773022527b1b0cb1e0c13aec97dd5248053
sizeof-long: 4
sizeof-size_t: 8
- Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
Windows 10 Enterprise version 1903
$ cmd.exe /c ver
Microsoft Windows [Version 10.0.18362.535]
What options did you set as part of the installation? Or did you choose the
defaults?
defaults
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt
Editor Option: VIM
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
Enable Builtin Interactive Add: Disabled
Any other interesting things about your environment that might be related
to the issue you're seeing?
none
Details
Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
Git Bash V 2.241.2-64 bit
** insert your response here **
What commands did you run to trigger this issue?
I changed the git user and I change the user in my computer with the following commands:
git config --global user.name "your user"
git config --global user.email "your e mail"
and for the specific repor that I am trying to work with from my old account I did the following:
git config --local user.name "your user"
git config --local user.email "your email"
The problem is that the user does not update and when I am trying to do any change in the repo from my command line CMD or Git bash it throws me the next error:
What did you expect to occur after running these commands?
I am expecting to push my changes to git but it is not working. The reason is because somehow my git is still trying to link the information with my old user.
What actually happened instead?
I got access denied
If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
I found the solution, turned out that my Credential Manager on windows had my old user account. Thus, I delete the user and restart the system. It worked perfectly.
Setup
$ cmd.exe /c ver
Microsoft Windows [Version 10.0.18362.535]
defaults?
defaults
to the issue you're seeing?
none
Details
Git Bash V 2.241.2-64 bit
** insert your response here **
I changed the git user and I change the user in my computer with the following commands:
git config --global user.name "your user"
git config --global user.email "your e mail"
and for the specific repor that I am trying to work with from my old account I did the following:
git config --local user.name "your user"
git config --local user.email "your email"
The problem is that the user does not update and when I am trying to do any change in the repo from my command line CMD or Git bash it throws me the next error:
remote: Permission to nonameforpirate2/docker-react2.git denied to oldnamegituser.
fatal: unable to access 'https://github.com/nonameforpirate2/docker-react2.git/': The requested URL returned error: 403
I am expecting to push my changes to git but it is not working. The reason is because somehow my git is still trying to link the information with my old user.
I got access denied
URL to that repository to help us with testing?
https://github.com/nonameforpirate2/docker-react2
By taking a look at my configuration file the user seems to be correct:
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=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=false
credential.helper=manager
user.name=nonameforpirate2
user.email=[email protected] ------------------> user email correct
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
submodule.active=.
remote.origin.url=https://github.com/nonameforpirate2/docker-react2.git
remote.origin.fetch=+refs/heads/:refs/remotes/origin/
branch.master.remote=origin
branch.master.merge=refs/heads/master
user.name=nonameforpirate2 ----------> user correct
I already uninstall and install back the Git-2.24.1.2-64 bits.
I will appreciate if you can give a solution for my problem.
Kind regards
The text was updated successfully, but these errors were encountered: