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 Invalid argument in Commit

See original GitHub issue

Describe the bug

When committing the code, the tool displays the error messages:

error: unable to create temporary file: Invalid argument error: unable to create temporary file: Invalid argument error: Error building trees

In log GitHub Desktop: error: [ui] git commit -F - exited with an unexpected code: 1.

Version & OS

Version 2.9.5 (x64) Windowns 10 Pro 21H2

Steps to reproduce the behavior

  1. Go to changes;
  2. Select alter files to commit;
  3. Scroll down to button ‘commit to branch’
  4. After click see error.

Screenshots

https://drive.google.com/file/d/1V01ambsVSfxPAZfPM2R2eTbJalHEQyRc/view?usp=sharing

Logs

2021-12-07T13:38:35.034Z - info: [ui] [Timing] Action ‘create commit’ for ‘MYPROJECT’ took 0.936s 2021-12-07T13:38:56.371Z - info: [ui] [AppStore] loading 13 repositories from store 2021-12-07T13:38:57.955Z - info: [ui] launching: 2.9.5 (Windows 10.0.19044) 2021-12-07T13:38:57.956Z - info: [ui] execPath: ‘C:\Users\username\AppData\Local\GitHubDesktop\app-2.9.5\GitHubDesktop.exe’ 2021-12-07T13:38:59.035Z - info: [ui] Executing installGlobalLFSFilter: git lfs install --skip-repo (took 1.076s) 2021-12-07T13:39:08.533Z - error: [ui] git commit -F - exited with an unexpected code: 1. stderr: error: unable to create temporary file: Invalid argument error: unable to create temporary file: Invalid argument error: Error building trees

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stevewardcommented, Mar 22, 2022

@avipars permissions issues can cause this error. If you’re having issues getting it resolved feel free to open a new issue.

0reactions
aviparscommented, Mar 22, 2022

Wanted to pipe in and hope other people can see … hope it helps

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git pull error: unable to create file (Invalid argument)
Go to your repository. Choose menu "commit". Select your branch that you want to remove problem file. Go to your file and click...
Read more >
git can not create directory, Invalid argument, when using ...
Solution · Rename the directory in git on another system and attempt the build again. · Delete the branch or branches with offending...
Read more >
git error: invalid object Error building trees | by Panjeh - Medium
in a git repository, I saw there was one untracked file which I had created already but had not been committed. Everything was...
Read more >
How to make commit changes to github (in English)? - Reddit
error: unable to create temporary file: Invalid argument · error: committee.html: failed to insert into database · fatal: Unable to process path ...
Read more >
Fixing Invalid Git Paths on Windows - brendanforster.com
Now we have two new files to commit: $ git status On branch fix-path-issue-with-invalid-files Untracked files: (use "git add <file>.
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