Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-4560

Cannot commit deleted files to git

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 1.8.1
    • Git
    • None

      After updating yesterday to the latest version of Windows sourcetree, I can no longer stage deleted files. I can stage changed and new files just fine.

      I get this error every time I try to stage a deleted file:

      git -c diff.mnemonicprefix=false -c core.quotepath=false rm -q -f – Upgrades.json
      fatal: pathspec 'Upgrades.json' did not match any files

      Completed with errors, see above.

      As a workaround, I add the file from git command line and it then works to actually do the commit.

      The path to my file in this case is actually "rules/Upgrades.json", and not simply "Upgrades.json" in the root folder, as the error message might suggest. Maybe you simply got the path wrong?

              Unassigned Unassigned
              a32fa82ac858 Christian Tellefsen
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: