Why am I getting git error “remote: error: unable to create temporary file: No such file or directory” on push?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












2














This problem is getting weirder.



My original post follows, but here is the new thing I discovered:



I executed



git push


and it gave me its usual error:



Counting objects: 9, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 588 bytes, done.
Total 5 (delta 4), reused 0 (delta 0)
remote: error: unable to create temporary file: No such file or directory
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To USER@REMOTE:/git/PROJECT.git
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'USER@REMOTE:/git/PROJECT.git'


So being overly optimistic, I thought maybe the "--verbose" option would give me some details, so I immediately tried again:



git push --verbose


and this time it worked:



Pushing to USER@REMOTE:/git/PROJECT.git
Counting objects: 9, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 588 bytes, done.
Total 5 (delta 4), reused 0 (delta 0)
To USER@REMOTE:/git/PROJECT.git
87d6996..1cae8b3 master -> master
updating local tracking ref 'refs/remotes/origin/master'


so it's just totally flaky. I'm starting to suspect that git just doesn't like LDAP.



Original post:



We're transitioning from cvs to git, and I have a test setup where I have a git server that authenticates users with LDAP, let's call it REMOTE, and then my personal machine, let's call it LOCAL. Both machines are Macs. All employees of the company (including me) are members of a group I'll cleverly call GROUP.



I ssh'd to REMOTE as me and created a git repository there in a folder named /git/PROJECT.git using cvs2git.



Then, back on LOCAL, I did:



git clone USER@REMOTE:/git/PROJECT.git


which was fine. On my Mac ("LOCAL") I then edited a few files, deleted a couple, and did



git -a FILES
git rm FILES
git commit -m 'COMMENT'


and life was good.



Then (still on LOCAL) I executed:



git push


to push my changes from LOCAL back to REMOTE and got this:



Counting objects: 19, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (10/10), 1.46 KiB, done.
Total 10 (delta 8), reused 0 (delta 0)
remote: error: unable to create temporary file: No such file or directory
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To USER@git-server-co.local:/git/PROJECT.git
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'USER@git-server-co.local:/git/PROJECT.git'


I researched this problem and it sounded like it might be that might $TMPDIR is wrong, so I ssh'ed to REMOTE, created a directory named /git/tmp, made sure it had write permissions, edited my .bashrc, and set $TMPDIR to /git/tmp.



Back on LOCAL, if I execute



ssh USER@REMOTE echo $TMPDIR


I correctly see the response



/git/tmp


If I ssh to REMOTE and check file permissions, here's what I see:



ls -l /git
drwxrwxrwx USER GROUP tmp
drwxrwsr-x USER GROUP PROJECT.git

ls -l /git/PROJECT.git


all files are rw for owner (me) and group



What else could be causing this error?



p.s. As is the standard on Macs, if I execute:



ssh ADMIN@REMOTE
cd /
ls -l


I see symbolic links: tmp -> /private/tmp, var -> /private/var, and etc -> /private/etc. I adjusted the permissions and ownership so now they are set to:



lrwxr-xr-x USER GROUP etc -> /private/etc
lrwxr-xr-x USER GROUP tmp -> /private/tmp
lrwxr-xr-x USER GROUP var -> /private/var


I also updated the permissions of the actual folders, so if I execute:



cd /private
ls -al


I see:



drwxr-xr-x USER GROUP etc
drwxrwxrwt USER GROUP tmp
drwxr-xr-x USER GROUP var


And finally, if I :



cd /private/var
ls -al


I see:



drwxrwxrwt USER GROUP tmp









share|improve this question













migrated from serverfault.com Dec 15 '13 at 16:07


This question came from our site for system and network administrators.



















    2














    This problem is getting weirder.



    My original post follows, but here is the new thing I discovered:



    I executed



    git push


    and it gave me its usual error:



    Counting objects: 9, done.
    Delta compression using up to 8 threads.
    Compressing objects: 100% (5/5), done.
    Writing objects: 100% (5/5), 588 bytes, done.
    Total 5 (delta 4), reused 0 (delta 0)
    remote: error: unable to create temporary file: No such file or directory
    remote: fatal: failed to write object
    error: unpack failed: unpack-objects abnormal exit
    To USER@REMOTE:/git/PROJECT.git
    ! [remote rejected] master -> master (unpacker error)
    error: failed to push some refs to 'USER@REMOTE:/git/PROJECT.git'


    So being overly optimistic, I thought maybe the "--verbose" option would give me some details, so I immediately tried again:



    git push --verbose


    and this time it worked:



    Pushing to USER@REMOTE:/git/PROJECT.git
    Counting objects: 9, done.
    Delta compression using up to 8 threads.
    Compressing objects: 100% (5/5), done.
    Writing objects: 100% (5/5), 588 bytes, done.
    Total 5 (delta 4), reused 0 (delta 0)
    To USER@REMOTE:/git/PROJECT.git
    87d6996..1cae8b3 master -> master
    updating local tracking ref 'refs/remotes/origin/master'


    so it's just totally flaky. I'm starting to suspect that git just doesn't like LDAP.



    Original post:



    We're transitioning from cvs to git, and I have a test setup where I have a git server that authenticates users with LDAP, let's call it REMOTE, and then my personal machine, let's call it LOCAL. Both machines are Macs. All employees of the company (including me) are members of a group I'll cleverly call GROUP.



    I ssh'd to REMOTE as me and created a git repository there in a folder named /git/PROJECT.git using cvs2git.



    Then, back on LOCAL, I did:



    git clone USER@REMOTE:/git/PROJECT.git


    which was fine. On my Mac ("LOCAL") I then edited a few files, deleted a couple, and did



    git -a FILES
    git rm FILES
    git commit -m 'COMMENT'


    and life was good.



    Then (still on LOCAL) I executed:



    git push


    to push my changes from LOCAL back to REMOTE and got this:



    Counting objects: 19, done.
    Delta compression using up to 8 threads.
    Compressing objects: 100% (9/9), done.
    Writing objects: 100% (10/10), 1.46 KiB, done.
    Total 10 (delta 8), reused 0 (delta 0)
    remote: error: unable to create temporary file: No such file or directory
    remote: fatal: failed to write object
    error: unpack failed: unpack-objects abnormal exit
    To USER@git-server-co.local:/git/PROJECT.git
    ! [remote rejected] master -> master (unpacker error)
    error: failed to push some refs to 'USER@git-server-co.local:/git/PROJECT.git'


    I researched this problem and it sounded like it might be that might $TMPDIR is wrong, so I ssh'ed to REMOTE, created a directory named /git/tmp, made sure it had write permissions, edited my .bashrc, and set $TMPDIR to /git/tmp.



    Back on LOCAL, if I execute



    ssh USER@REMOTE echo $TMPDIR


    I correctly see the response



    /git/tmp


    If I ssh to REMOTE and check file permissions, here's what I see:



    ls -l /git
    drwxrwxrwx USER GROUP tmp
    drwxrwsr-x USER GROUP PROJECT.git

    ls -l /git/PROJECT.git


    all files are rw for owner (me) and group



    What else could be causing this error?



    p.s. As is the standard on Macs, if I execute:



    ssh ADMIN@REMOTE
    cd /
    ls -l


    I see symbolic links: tmp -> /private/tmp, var -> /private/var, and etc -> /private/etc. I adjusted the permissions and ownership so now they are set to:



    lrwxr-xr-x USER GROUP etc -> /private/etc
    lrwxr-xr-x USER GROUP tmp -> /private/tmp
    lrwxr-xr-x USER GROUP var -> /private/var


    I also updated the permissions of the actual folders, so if I execute:



    cd /private
    ls -al


    I see:



    drwxr-xr-x USER GROUP etc
    drwxrwxrwt USER GROUP tmp
    drwxr-xr-x USER GROUP var


    And finally, if I :



    cd /private/var
    ls -al


    I see:



    drwxrwxrwt USER GROUP tmp









    share|improve this question













    migrated from serverfault.com Dec 15 '13 at 16:07


    This question came from our site for system and network administrators.

















      2












      2








      2







      This problem is getting weirder.



      My original post follows, but here is the new thing I discovered:



      I executed



      git push


      and it gave me its usual error:



      Counting objects: 9, done.
      Delta compression using up to 8 threads.
      Compressing objects: 100% (5/5), done.
      Writing objects: 100% (5/5), 588 bytes, done.
      Total 5 (delta 4), reused 0 (delta 0)
      remote: error: unable to create temporary file: No such file or directory
      remote: fatal: failed to write object
      error: unpack failed: unpack-objects abnormal exit
      To USER@REMOTE:/git/PROJECT.git
      ! [remote rejected] master -> master (unpacker error)
      error: failed to push some refs to 'USER@REMOTE:/git/PROJECT.git'


      So being overly optimistic, I thought maybe the "--verbose" option would give me some details, so I immediately tried again:



      git push --verbose


      and this time it worked:



      Pushing to USER@REMOTE:/git/PROJECT.git
      Counting objects: 9, done.
      Delta compression using up to 8 threads.
      Compressing objects: 100% (5/5), done.
      Writing objects: 100% (5/5), 588 bytes, done.
      Total 5 (delta 4), reused 0 (delta 0)
      To USER@REMOTE:/git/PROJECT.git
      87d6996..1cae8b3 master -> master
      updating local tracking ref 'refs/remotes/origin/master'


      so it's just totally flaky. I'm starting to suspect that git just doesn't like LDAP.



      Original post:



      We're transitioning from cvs to git, and I have a test setup where I have a git server that authenticates users with LDAP, let's call it REMOTE, and then my personal machine, let's call it LOCAL. Both machines are Macs. All employees of the company (including me) are members of a group I'll cleverly call GROUP.



      I ssh'd to REMOTE as me and created a git repository there in a folder named /git/PROJECT.git using cvs2git.



      Then, back on LOCAL, I did:



      git clone USER@REMOTE:/git/PROJECT.git


      which was fine. On my Mac ("LOCAL") I then edited a few files, deleted a couple, and did



      git -a FILES
      git rm FILES
      git commit -m 'COMMENT'


      and life was good.



      Then (still on LOCAL) I executed:



      git push


      to push my changes from LOCAL back to REMOTE and got this:



      Counting objects: 19, done.
      Delta compression using up to 8 threads.
      Compressing objects: 100% (9/9), done.
      Writing objects: 100% (10/10), 1.46 KiB, done.
      Total 10 (delta 8), reused 0 (delta 0)
      remote: error: unable to create temporary file: No such file or directory
      remote: fatal: failed to write object
      error: unpack failed: unpack-objects abnormal exit
      To USER@git-server-co.local:/git/PROJECT.git
      ! [remote rejected] master -> master (unpacker error)
      error: failed to push some refs to 'USER@git-server-co.local:/git/PROJECT.git'


      I researched this problem and it sounded like it might be that might $TMPDIR is wrong, so I ssh'ed to REMOTE, created a directory named /git/tmp, made sure it had write permissions, edited my .bashrc, and set $TMPDIR to /git/tmp.



      Back on LOCAL, if I execute



      ssh USER@REMOTE echo $TMPDIR


      I correctly see the response



      /git/tmp


      If I ssh to REMOTE and check file permissions, here's what I see:



      ls -l /git
      drwxrwxrwx USER GROUP tmp
      drwxrwsr-x USER GROUP PROJECT.git

      ls -l /git/PROJECT.git


      all files are rw for owner (me) and group



      What else could be causing this error?



      p.s. As is the standard on Macs, if I execute:



      ssh ADMIN@REMOTE
      cd /
      ls -l


      I see symbolic links: tmp -> /private/tmp, var -> /private/var, and etc -> /private/etc. I adjusted the permissions and ownership so now they are set to:



      lrwxr-xr-x USER GROUP etc -> /private/etc
      lrwxr-xr-x USER GROUP tmp -> /private/tmp
      lrwxr-xr-x USER GROUP var -> /private/var


      I also updated the permissions of the actual folders, so if I execute:



      cd /private
      ls -al


      I see:



      drwxr-xr-x USER GROUP etc
      drwxrwxrwt USER GROUP tmp
      drwxr-xr-x USER GROUP var


      And finally, if I :



      cd /private/var
      ls -al


      I see:



      drwxrwxrwt USER GROUP tmp









      share|improve this question













      This problem is getting weirder.



      My original post follows, but here is the new thing I discovered:



      I executed



      git push


      and it gave me its usual error:



      Counting objects: 9, done.
      Delta compression using up to 8 threads.
      Compressing objects: 100% (5/5), done.
      Writing objects: 100% (5/5), 588 bytes, done.
      Total 5 (delta 4), reused 0 (delta 0)
      remote: error: unable to create temporary file: No such file or directory
      remote: fatal: failed to write object
      error: unpack failed: unpack-objects abnormal exit
      To USER@REMOTE:/git/PROJECT.git
      ! [remote rejected] master -> master (unpacker error)
      error: failed to push some refs to 'USER@REMOTE:/git/PROJECT.git'


      So being overly optimistic, I thought maybe the "--verbose" option would give me some details, so I immediately tried again:



      git push --verbose


      and this time it worked:



      Pushing to USER@REMOTE:/git/PROJECT.git
      Counting objects: 9, done.
      Delta compression using up to 8 threads.
      Compressing objects: 100% (5/5), done.
      Writing objects: 100% (5/5), 588 bytes, done.
      Total 5 (delta 4), reused 0 (delta 0)
      To USER@REMOTE:/git/PROJECT.git
      87d6996..1cae8b3 master -> master
      updating local tracking ref 'refs/remotes/origin/master'


      so it's just totally flaky. I'm starting to suspect that git just doesn't like LDAP.



      Original post:



      We're transitioning from cvs to git, and I have a test setup where I have a git server that authenticates users with LDAP, let's call it REMOTE, and then my personal machine, let's call it LOCAL. Both machines are Macs. All employees of the company (including me) are members of a group I'll cleverly call GROUP.



      I ssh'd to REMOTE as me and created a git repository there in a folder named /git/PROJECT.git using cvs2git.



      Then, back on LOCAL, I did:



      git clone USER@REMOTE:/git/PROJECT.git


      which was fine. On my Mac ("LOCAL") I then edited a few files, deleted a couple, and did



      git -a FILES
      git rm FILES
      git commit -m 'COMMENT'


      and life was good.



      Then (still on LOCAL) I executed:



      git push


      to push my changes from LOCAL back to REMOTE and got this:



      Counting objects: 19, done.
      Delta compression using up to 8 threads.
      Compressing objects: 100% (9/9), done.
      Writing objects: 100% (10/10), 1.46 KiB, done.
      Total 10 (delta 8), reused 0 (delta 0)
      remote: error: unable to create temporary file: No such file or directory
      remote: fatal: failed to write object
      error: unpack failed: unpack-objects abnormal exit
      To USER@git-server-co.local:/git/PROJECT.git
      ! [remote rejected] master -> master (unpacker error)
      error: failed to push some refs to 'USER@git-server-co.local:/git/PROJECT.git'


      I researched this problem and it sounded like it might be that might $TMPDIR is wrong, so I ssh'ed to REMOTE, created a directory named /git/tmp, made sure it had write permissions, edited my .bashrc, and set $TMPDIR to /git/tmp.



      Back on LOCAL, if I execute



      ssh USER@REMOTE echo $TMPDIR


      I correctly see the response



      /git/tmp


      If I ssh to REMOTE and check file permissions, here's what I see:



      ls -l /git
      drwxrwxrwx USER GROUP tmp
      drwxrwsr-x USER GROUP PROJECT.git

      ls -l /git/PROJECT.git


      all files are rw for owner (me) and group



      What else could be causing this error?



      p.s. As is the standard on Macs, if I execute:



      ssh ADMIN@REMOTE
      cd /
      ls -l


      I see symbolic links: tmp -> /private/tmp, var -> /private/var, and etc -> /private/etc. I adjusted the permissions and ownership so now they are set to:



      lrwxr-xr-x USER GROUP etc -> /private/etc
      lrwxr-xr-x USER GROUP tmp -> /private/tmp
      lrwxr-xr-x USER GROUP var -> /private/var


      I also updated the permissions of the actual folders, so if I execute:



      cd /private
      ls -al


      I see:



      drwxr-xr-x USER GROUP etc
      drwxrwxrwt USER GROUP tmp
      drwxr-xr-x USER GROUP var


      And finally, if I :



      cd /private/var
      ls -al


      I see:



      drwxrwxrwt USER GROUP tmp






      ssh permissions ldap git






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 10 '13 at 0:17







      Betty Crokker











      migrated from serverfault.com Dec 15 '13 at 16:07


      This question came from our site for system and network administrators.






      migrated from serverfault.com Dec 15 '13 at 16:07


      This question came from our site for system and network administrators.






















          2 Answers
          2






          active

          oldest

          votes


















          1














          First, I would check why you've got the "error: unable to create temporary file: No such file or directory" at the first attempt.
          What was the initial $TMPDIR?
          Was it different from /tmp or /var/tmp?
          Could you check permissions for these two directories?
          Have you considered adding "-v" to git's commands, to see the details?
          If you really would like to use different TMPDIR, consider adding this variable to some other "dot file", like .profile.






          share|improve this answer




















          • Intially, TMPDIR is not set to anything. If I set it to /tmp in my .bashrc, the error message is the same.
            – Betty Crokker
            Dec 10 '13 at 15:30










          • I've also added a "p.s." to my original post with details about the various /tmp directories on my Mac.
            – Betty Crokker
            Dec 10 '13 at 15:54










          • And typing "git push --verbose" inserts one additional line at the top of the output: "Pushing to USER@REMOTE:/git/PROJECT.git"
            – Betty Crokker
            Dec 10 '13 at 16:01


















          1














          I also got this error: error: unable to create temporary file: Not a directory.
          while adding a file. (git add filename.ext)



          I checked in .git folder and found a suspicious file e4(maybe corrupted). e4 should be a directory but it wasn't. So, I removed the file (named e4 in my case) from .git/objects/



          rm -rf .git/objects/e4


          Then error didn't happen again.






          share|improve this answer






















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f105261%2fwhy-am-i-getting-git-error-remote-error-unable-to-create-temporary-file-no-s%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown
























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            First, I would check why you've got the "error: unable to create temporary file: No such file or directory" at the first attempt.
            What was the initial $TMPDIR?
            Was it different from /tmp or /var/tmp?
            Could you check permissions for these two directories?
            Have you considered adding "-v" to git's commands, to see the details?
            If you really would like to use different TMPDIR, consider adding this variable to some other "dot file", like .profile.






            share|improve this answer




















            • Intially, TMPDIR is not set to anything. If I set it to /tmp in my .bashrc, the error message is the same.
              – Betty Crokker
              Dec 10 '13 at 15:30










            • I've also added a "p.s." to my original post with details about the various /tmp directories on my Mac.
              – Betty Crokker
              Dec 10 '13 at 15:54










            • And typing "git push --verbose" inserts one additional line at the top of the output: "Pushing to USER@REMOTE:/git/PROJECT.git"
              – Betty Crokker
              Dec 10 '13 at 16:01















            1














            First, I would check why you've got the "error: unable to create temporary file: No such file or directory" at the first attempt.
            What was the initial $TMPDIR?
            Was it different from /tmp or /var/tmp?
            Could you check permissions for these two directories?
            Have you considered adding "-v" to git's commands, to see the details?
            If you really would like to use different TMPDIR, consider adding this variable to some other "dot file", like .profile.






            share|improve this answer




















            • Intially, TMPDIR is not set to anything. If I set it to /tmp in my .bashrc, the error message is the same.
              – Betty Crokker
              Dec 10 '13 at 15:30










            • I've also added a "p.s." to my original post with details about the various /tmp directories on my Mac.
              – Betty Crokker
              Dec 10 '13 at 15:54










            • And typing "git push --verbose" inserts one additional line at the top of the output: "Pushing to USER@REMOTE:/git/PROJECT.git"
              – Betty Crokker
              Dec 10 '13 at 16:01













            1












            1








            1






            First, I would check why you've got the "error: unable to create temporary file: No such file or directory" at the first attempt.
            What was the initial $TMPDIR?
            Was it different from /tmp or /var/tmp?
            Could you check permissions for these two directories?
            Have you considered adding "-v" to git's commands, to see the details?
            If you really would like to use different TMPDIR, consider adding this variable to some other "dot file", like .profile.






            share|improve this answer












            First, I would check why you've got the "error: unable to create temporary file: No such file or directory" at the first attempt.
            What was the initial $TMPDIR?
            Was it different from /tmp or /var/tmp?
            Could you check permissions for these two directories?
            Have you considered adding "-v" to git's commands, to see the details?
            If you really would like to use different TMPDIR, consider adding this variable to some other "dot file", like .profile.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 10 '13 at 3:47







            plluksie


















            • Intially, TMPDIR is not set to anything. If I set it to /tmp in my .bashrc, the error message is the same.
              – Betty Crokker
              Dec 10 '13 at 15:30










            • I've also added a "p.s." to my original post with details about the various /tmp directories on my Mac.
              – Betty Crokker
              Dec 10 '13 at 15:54










            • And typing "git push --verbose" inserts one additional line at the top of the output: "Pushing to USER@REMOTE:/git/PROJECT.git"
              – Betty Crokker
              Dec 10 '13 at 16:01
















            • Intially, TMPDIR is not set to anything. If I set it to /tmp in my .bashrc, the error message is the same.
              – Betty Crokker
              Dec 10 '13 at 15:30










            • I've also added a "p.s." to my original post with details about the various /tmp directories on my Mac.
              – Betty Crokker
              Dec 10 '13 at 15:54










            • And typing "git push --verbose" inserts one additional line at the top of the output: "Pushing to USER@REMOTE:/git/PROJECT.git"
              – Betty Crokker
              Dec 10 '13 at 16:01















            Intially, TMPDIR is not set to anything. If I set it to /tmp in my .bashrc, the error message is the same.
            – Betty Crokker
            Dec 10 '13 at 15:30




            Intially, TMPDIR is not set to anything. If I set it to /tmp in my .bashrc, the error message is the same.
            – Betty Crokker
            Dec 10 '13 at 15:30












            I've also added a "p.s." to my original post with details about the various /tmp directories on my Mac.
            – Betty Crokker
            Dec 10 '13 at 15:54




            I've also added a "p.s." to my original post with details about the various /tmp directories on my Mac.
            – Betty Crokker
            Dec 10 '13 at 15:54












            And typing "git push --verbose" inserts one additional line at the top of the output: "Pushing to USER@REMOTE:/git/PROJECT.git"
            – Betty Crokker
            Dec 10 '13 at 16:01




            And typing "git push --verbose" inserts one additional line at the top of the output: "Pushing to USER@REMOTE:/git/PROJECT.git"
            – Betty Crokker
            Dec 10 '13 at 16:01













            1














            I also got this error: error: unable to create temporary file: Not a directory.
            while adding a file. (git add filename.ext)



            I checked in .git folder and found a suspicious file e4(maybe corrupted). e4 should be a directory but it wasn't. So, I removed the file (named e4 in my case) from .git/objects/



            rm -rf .git/objects/e4


            Then error didn't happen again.






            share|improve this answer



























              1














              I also got this error: error: unable to create temporary file: Not a directory.
              while adding a file. (git add filename.ext)



              I checked in .git folder and found a suspicious file e4(maybe corrupted). e4 should be a directory but it wasn't. So, I removed the file (named e4 in my case) from .git/objects/



              rm -rf .git/objects/e4


              Then error didn't happen again.






              share|improve this answer

























                1












                1








                1






                I also got this error: error: unable to create temporary file: Not a directory.
                while adding a file. (git add filename.ext)



                I checked in .git folder and found a suspicious file e4(maybe corrupted). e4 should be a directory but it wasn't. So, I removed the file (named e4 in my case) from .git/objects/



                rm -rf .git/objects/e4


                Then error didn't happen again.






                share|improve this answer














                I also got this error: error: unable to create temporary file: Not a directory.
                while adding a file. (git add filename.ext)



                I checked in .git folder and found a suspicious file e4(maybe corrupted). e4 should be a directory but it wasn't. So, I removed the file (named e4 in my case) from .git/objects/



                rm -rf .git/objects/e4


                Then error didn't happen again.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Dec 28 '18 at 5:15









                Rui F Ribeiro

                39.2k1479130




                39.2k1479130










                answered Dec 25 '18 at 10:12









                Ashish

                111




                111



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f105261%2fwhy-am-i-getting-git-error-remote-error-unable-to-create-temporary-file-no-s%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown






                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?