The working copy <Project name> failed to commit files. – The repository has an uncompleted operation

I’ve just updated my Xcode from 6 to 7 (and code from Swift 1.2 to Swift 2.0) and try to create new branch in Xcode. After that I can’t push my code to Bitbucket.

Is there a way how can I delete repository from directory and setup Bitbucket again and maybe push to another (a new one) repository? Fix of this problem will be great, but I will be satisfied even with move to another repository.

  • Bitbucket REST interface and GIT; how to get a log history between two tags from a branch
  • Migrate from old LFS repo to new LFS repo?
  • Git pull/clone a branch
  • How to properly configure ssh keys to multiple remote accounts involving github and bitbucket?
  • Using Bitbucket, how do I get commits from one branch into another?
  • How to checkout only Jenkinsfile instead of the whole branch while using Bitbucket Pullrequest Builder Plugin?
  • Heroku - Git push without building
  • Removing a cloned repo
  • git blob fails on push
  • Git- cannot use vimdiff when merge conflic
  • Missing commits after switching back and forth between branches
  • Migrating two svn repos with a common history to git
  • 3 Solutions collect form web for “The working copy <Project name> failed to commit files. – The repository has an uncompleted operation”

    I had this error in xcode 7.1 on a year old project that was working fine. In my case I have a project with the default local repository created by xcode. For anyone who is not going to re-install and re-setup. It is possible to find out what the dangling command is and fix it from command line.

    To find the dangling command Open Terminal from the project directory:

    xcrun git status

    In my case the status returned:

    On branch master
    You are currently rebasing.
    (all conflicts fixed: run “git rebase –continue”)

    To fix the problem I used:

    xcrun git rebase –skip

    The problem was with installation of GitHub. I had a master repository. After reinstall and resetup everything works like before.

    In my case I ran git status which revealed that You are currently bisecting. (I was doing a bisect and must had forgotten to reset). I did a git bisect reset and attached the head to my latest commit and it was all fine afterwards.

    Git Baby is a git and github fan, let's start git clone.