Skip to content

Windows does not update new git user #2433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
nonameforpirate2 opened this issue Dec 16, 2019 · 1 comment
Closed
1 task done

Windows does not update new git user #2433

nonameforpirate2 opened this issue Dec 16, 2019 · 1 comment

Comments

@nonameforpirate2
Copy link

nonameforpirate2 commented Dec 16, 2019

  • 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:

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

** insert your commands here **
  • 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?

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

@nonameforpirate2
Copy link
Author

nonameforpirate2 commented Dec 16, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant