Skip to content
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

Commit to branch not working on Github Desktop #18531

Open
PDJEY opened this issue Apr 29, 2024 · 6 comments
Open

Commit to branch not working on Github Desktop #18531

PDJEY opened this issue Apr 29, 2024 · 6 comments

Comments

@PDJEY
Copy link

PDJEY commented Apr 29, 2024

The problem

For the past few days, despite trying to reeinstall the app, I simply can't commit to a repo, be it main or another branch. Already searched other reports but didn't find a fix.

Release version

3.3.14(x64)

Operating system

Windows 11

Steps to reproduce the behavior

No response

Log files

2024-04-29.desktop.production.log

Screenshots

image
image

Additional context

No response

@steveward
Copy link
Member

Thanks for the report @PDJEY. I'm seeing an exit code 1 in the log file:

2024-04-29T13:01:02.483Z - error: [ui] `git commit -F -` exited with an unexpected code: 1.
stdout:
On branch main

Unfortunately that isn't giving a lot of information about why committing is failing. Can you try committing directly from the command line to see if you encounter any issues there? Here's how to do that:

  1. Go to Repository > Open in <command_line>
  2. Run the command git add -A
  3. Run the command `git commit -m "your commit message"

Let me know if that outputs any errors.

@steveward steveward added the more-info-needed The submitter needs to provide more information about the issue label Apr 29, 2024
@PDJEY
Copy link
Author

PDJEY commented Apr 29, 2024

Doing that allows me to commit to then use the app to push to the repo. Does that mean I'm gonna have to stop using the app to commit?

@github-actions github-actions bot removed the more-info-needed The submitter needs to provide more information about the issue label Apr 29, 2024
@steveward
Copy link
Member

That was mainly to see if the issue was present in both the command line and GitHub Desktop. Have you tried committing in GitHub Desktop again to see if that succeeds?

@PDJEY
Copy link
Author

PDJEY commented Apr 29, 2024

Yes the problem remains when trying to commit directly on GitHub desktop

@steveward
Copy link
Member

Are you still encountering the same specific error? Have you also tried creating a new test repository to see if you encounter this issue there?

@PDJEY
Copy link
Author

PDJEY commented May 4, 2024

When trying a different repo the problem disappears :/

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

2 participants