Comments (8)
interesting. it's not obvious what the problem is.
if you can reproduce it, let me know
from git-fresh.
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.
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.
@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.
From the reported issue above I could not get back my repository only by cloning it again unfortunately.
from git-fresh.
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.
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.
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)
- split -F into -M and -W
- git fresh -f error HOT 3
- git fresh alters the last branch HOT 8
- No longer removing branches HOT 6
- Whitelist branches HOT 6
- Fix not rebasing against existing remote branch
- Support global .freshignore
- Investigate recovering HEAD ref HOT 1
- Run git prune before GC
- Run git gc and git prune before running git-fresh
- Current stable release version? HOT 4
- Needs help docs HOT 2
- Run git prune when gc fails
- Windows support for install script HOT 1
- Figure out how to deal with stale remote branches in read-only repos
- Add flag to clear stash
- Poor error message with `git fresh -f` in a repo with github protected branch HOT 3
- Support for submodule update HOT 2
- Change directory to repo root before making changes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-fresh.