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

Cannot commit deleted files to git

    XMLWordPrintable

Details

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

    Description

      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?

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: