Skip to content

can't commit with already login #8019

Closed

Description

@Akimotorakiyu

Description

It works yestoday, but today...

图片

Version

  • GitHub Desktop: 2.1.0
  • Operating system: windows 10 1903

Steps to Reproduce

jsut commit your change

Expected Behavior

commit successful!

Actual Behavior

图片

Additional Information

Logs

2019-07-25.desktop.production.log

Activity

  1. tierninho commented on Jul 25, 2019

    @tierninho
    Contributor

    @silverleaves Thank you for filing this.

    What happened when you ran the two commands? You can also opt to set your git credentials under the Options menu > Git tab.

    Also, please submit your logs --- see the Help menu.

  2. added
    more-info-needed
    on Jul 25, 2019
  3. Akimotorakiyu commented on Jul 25, 2019

    @Akimotorakiyu
    Author

    What happened when you ran the two commands? You can also opt to set your git credentials under the Options menu > Git tab.

    I tryed, But it didn't work, even reinstall git and github desktop.

    图片

    图片

    I tryed, But it didn't work, even reinstall git and github desktop.

  4. Akimotorakiyu commented on Jul 25, 2019

    @Akimotorakiyu
    Author

    Also, please submit your logs --- see the Help menu.

    2019-07-25.desktop.production.log

  5. steveward commented on Jul 25, 2019

    @steveward
    Contributor

    @silverleaves can you go to File Explorer and navigate to C:\Users\Silver\ and open the .gitconfig file located there?

    The entries should look like this in that file:

    [user]
    	name = Your Name
    	email = [email protected]
    

    Is it possible that there are read/write permission issues that are causing these values to not get written to that file? Generally an error would be thrown in that case, but that's one thing we have seen in the past.

  6. tierninho commented on Jul 25, 2019

    @tierninho
    Contributor

    @silverleaves Thanks for the information.

    There might not be a local setting for your git credentials. Go to your repo in the command line and run git config --local -l. If you do not see your name/email there, run:

    That should do it.


    An alternative solution is:

    You can solve the problem with the global solution, but firstly I want to describe the solution for each project individually, cause of trustfully compatibility with most of Git clients and other implemented Git environments:

    Individual Solution
    Go to the following location:

    Local/repo/location/.git/

    open "config" file there, and set your parameters like the example (add to the end of the file):

    [user]
        name = YOUR-NAME
        email = YOUR-EMAIL-ADDRESS
    
  7. Akimotorakiyu commented on Jul 26, 2019

    @Akimotorakiyu
    Author

    @steveward
    图片

    Is it possible that there are read/write permission issues that are causing these values to not get written to that file? Generally an error would be thrown in that case, but that's one thing we have seen in the past.

    I use vscode to commit my change. when commit, login my account and vscode works, then the change submited. so maybe the issue is not cause read/write permission, because vscode use git directly.

  8. Akimotorakiyu commented on Jul 26, 2019

    @Akimotorakiyu
    Author

    I don't know why. now it can work.

    I will close this issue, thank you very much!

  9. tierninho commented on Jul 26, 2019

    @tierninho
    Contributor

    Thanks for the update @silverleaves !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    more-info-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions