Git: cannot open .pbxproj file error after renaming Xcode project and pulling changes

I renamed our iOS project (client finally chose a name) following instructions in the most upvoted answer here. I pushed my changes. Now, when my teammates pull, they cannot open the project because Xcode cannot find the .pbxproj file. They subsequently reset to their good local versions.

As usual when I royally f**k up I tried a hard reset to the last good commit, planning to force push the good commit up to the remote. While the reset was ‘sucessful’, it didn’t change the newName.pbxproj back to oldName.pbxproj. So I could not open the project. Checking out my faulty commit didn’t help things either. I am back at square one.

  • git clone fails silently
  • Git pull fatal: Out of memory, malloc failed
  • git log shows diff despite --no-patch
  • Git clone http with password
  • git: Aborting commit due to empty commit message (editor: atom)
  • Jenkins Git Plugin and Reference Repos?
  • .pbxproj is NOT in our .gitignore:


    The only thing I can think of now is to reclone the project from a specific remote commit. How can I do this? Other options? Why won’t a renamed .pbxproj transfer over in a pull?

  • VCS independent diff
  • Pushing only one file to GIT
  • How can I see all modified files from a Git Pull Request?
  • Managing git across mutliple sites
  • Git Switch Base Branch
  • how do i search bitbucket files that contain a string and are contained in specific repos?
  • One Solution collect form web for “Git: cannot open .pbxproj file error after renaming Xcode project and pulling changes”

    If you do a git log -5 it will show your last 5 commits. Determine the version before you named the file, and you can do a git reset --hard HEAD~<number> where <number> is how many commits you want to go back.

    Alternatively, with your renamed proj file, you could try to blow away your remote with a git push origin :branchName then push your local changed branch up to the remote git push origin branchName

    Then, have your other team members do a pull from the newly pushed remote.

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