question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GitHub desktop uses Windows Account instead of github account.

See original GitHub issue

Describe the bug

When COMMITted a file to my local repository, the COMMIT is recorded as it was committed by my Windows account instead of my github account.

Version & OS

Github desktop Version 2.4.0 OS: Windows 10 Enterprise 10.0.17134 Build 17134

Steps to reproduce the behavior

  1. Login to Windows with an account which name is different from the github account.
  2. Create and commit a file to a master of my private repository.
  3. See History to confirm the file was committed by the Windows account.
  4. When the commit is pushed to the Github repository, it was also recorded as the file is committed by the Windows account.

Expected behavior

It is recorded as the file is committed by my github account. Because I signed in to github desktop with my github account.

Actual behavior

It is recorded as the file is committed by my Windows account on both local and github repositories.

Screenshots

GS004689 Github desktop history record says Windows account is used since April 2020.

“Nori Tan” is the name of github account and “Noriaki Tanaka” is the name of my Windows account.

GS004691

There are same records on github.

Logs

Attach your logs by opening the Help menu and selecting Show Logs..., if applicable.

2020-04-02T07:41:47.542Z - info: [ui] [AppStore] loading 14 repositories from store
2020-04-02T07:41:47.544Z - info: [ui] [AppStore] found account: noritan (Nori Tan)
2020-04-02T07:41:49.145Z - info: [ui] launching: 2.4.0 (Windows 10.0.17134)
2020-04-02T07:41:49.146Z - info: [ui] execPath: 'C:\Users\ntan\AppData\Local\GitHubDesktop\app-2.4.0\GitHubDesktop.exe'
2020-04-02T07:41:52.030Z - info: [ui] Executing installGlobalLFSFilter: git lfs install --skip-repo (took 2.959s)
2020-04-02T07:41:55.365Z - info: [ui] Executing getRemotes: git remote -v (took 4.519s)
2020-04-02T07:43:58.427Z - info: [ui] Background fetch for 14 repositories took 10.789sec
2020-04-02T07:46:57.218Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 3.917s)
2020-04-02T07:59:06.151Z - info: [ui] Background fetch for 14 repositories took 7.700sec
2020-04-02T08:14:05.931Z - info: [ui] Background fetch for 14 repositories took 7.519sec
2020-04-02T08:17:05.744Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 3.206s)
2020-04-02T08:21:15.130Z - info: [ui] [Timing] Action 'create commit' for 'noritan/DOCS' took 2.006s
2020-04-02T08:21:16.193Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: DOCS - noritan (has token)
2020-04-02T08:21:22.212Z - info: [ui] Executing push: git -c credential.helper= -c protocol.version=2 push origin master:master --progress (took 5.752s)
2020-04-02T08:21:25.922Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 3.554s)
2020-04-02T08:27:02.961Z - info: [ui] [AppStore] removing account noritan (Nori Tan) from store
2020-04-02T08:28:06.936Z - info: [ui] [AppStore] adding account noritan (Nori Tan) to store
2020-04-02T08:29:05.976Z - info: [ui] Background fetch for 14 repositories took 7.592sec
2020-04-02T08:44:05.748Z - info: [ui] Background fetch for 14 repositories took 7.385sec
2020-04-02T08:52:15.029Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 3.322s)
2020-04-02T08:54:31.855Z - info: [ui] Executing getConfigValueInPath: git config -z pull.rebase (took 4.210s)
2020-04-02T08:54:31.877Z - info: [ui] Executing getCommits: git log origin/master..master --date=raw --max-count=100 --pretty=%H%x1F%h%x1F%s%x1F%b%x1F%an <%ae> %ad%x1F%cn <%ce> %cd%x1F%P%x1F%(trailers:unfold,only) -z --no-show-signature --no-color -- (took 4.222s)

Additional context

Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
noritancommented, Apr 7, 2020

SPB_Data is not a repository.

I found information regarding SPB_Data directory by google, it was said the environment variable HOME is changed when the OrCAD application is installed.

Actually I have installed Cadence PCB Viewer on 27 MAR 2020. This should be a root cause.

Regards, Noriaki

0reactions
tierninhocommented, Apr 7, 2020

Thanks for the confirmation. I will close this issue for now as you have identified the root cause. Feel free to reach out for any help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Git for GitHub Desktop
GitHub Desktop allows you to set the name and email address you would like associated with the commits you make in your repositories....
Read more >
Getting started with GitHub Desktop
This guide will help you get started with GitHub Desktop by setting up the application, authenticating your account, configuring basic settings, and introducing ......
Read more >
Setting up GitHub Desktop
If you have an account on GitHub or GitHub Enterprise, you can use GitHub Desktop to exchange data between your local and remote...
Read more >
Authenticating to GitHub - GitHub Docs
You can securely access your account's resources on GitHub Desktop by authenticating to GitHub. ... We require authenticating using the browser instead.
Read more >
Unable to sign in on Github Desktop through browser #11410
Make sure you're signed out of GitHub in your default browser · Attempt to sign into GitHub Desktop · After signing in, you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found