Cannot unstage file in a new git repo before the first commit

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 1.3.2
    • Affects Version/s: None
    • Component/s: Git
    • None

      This is because SourceTree runs 'git reset <file>'. This works perfectly fine in every case other than before the first commit, where it reports

      fatal: Failed to resolve 'HEAD' as a valid ref.
      

      In fact in this case we should be using 'git rm --cached'. You can't use this for any other case than newly added files, since for existing files it removes them from the repository. Typical usability issues from git...

            Assignee:
            Unassigned
            Reporter:
            Steve Streeting (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: