Giter Club home page Giter Club logo

Comments (8)

imsky avatar imsky commented on June 1, 2024

interesting. it's not obvious what the problem is.

if you can reproduce it, let me know

from git-fresh.

raszi avatar raszi commented on June 1, 2024

Happened again. A bit differently on a clean repo after just simply hitting git fresh -f:

$ git fresh -f
c96ce8f583d4f2cd0353d73571565c79609c6842
warning: ignoring broken ref refs/heads/master.
warning: ignoring broken ref refs/heads/master.
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
[git-fresh] Error on line 146: fi

from git-fresh.

raszi avatar raszi commented on June 1, 2024

I stopped using this script, since after this error I lost all my changes in the repository and the only thing I could do is to start from scratch and clone it out again.

from git-fresh.

imsky avatar imsky commented on June 1, 2024

@raszi i've seen this happen where the ref is lost. can you provide details about your OS? i suspect it has something to do with file system conflicts.

your changes are not lost (git-fresh does not do anything destructive by default or with -f flag) - they should still be recoverable.

from git-fresh.

raszi avatar raszi commented on June 1, 2024

From the reported issue above I could not get back my repository only by cloning it again unfortunately.

from git-fresh.

imsky avatar imsky commented on June 1, 2024

ok @raszi sorry to hear that

can you provide any details about your system? OS, bash version, file system, whether you're the only contributor to the Git repo, etc.

from git-fresh.

raszi avatar raszi commented on June 1, 2024

OS: macOS Sierra 10.12.6 (16G29)
bash: GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)
fs: hfs

I had multiple remote repositories from multiple contributors.

from git-fresh.

imsky avatar imsky commented on June 1, 2024

thanks. i wonder if the "missing master HEAD ref recovery" is causing this issue...i've only ever seen it happen due to file system problems (and fairly crufty Git checkouts), e.g. race conditions between Git and the file system.

without a repro case, this is difficult to diagnose, but i'll keep an eye on it.

from git-fresh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.