$ git --version git version 1.7.7.6 $ git status # On branch master nothing to commit (working directory clean) $ echo This is a test >ffff $ git status # On branch master # Untracked files: # (use "git add ..." to include in what will be committed) # # ffff nothing added to commit but untracked files present (use "git add" to track) $ git add ffff $ # The notation "0<&-" means "close standard input (fd 0) in the process that $ # executes this command. It may be specific to bash. $ git commit -m xxxx 0<&- error: unable to create temporary sha1 filename : No such file or directory error: Error building trees $ git status # On branch master # Changes to be committed: # (use "git reset HEAD ..." to unstage) # # new file: ffff # $ git commit -m xxxx [master 54c146c] xxxx 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 ffff $ git status # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # nothing to commit (working directory clean) $