-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lost config files from home disk, after adding to a commit #38
Comments
Hey mate, Have a look at fcheckout which I think should solve your issue. It should restore your deleted file using git. |
After reading your description for about 2 times I apologise that I may not still fully understand how you end up in the current state. But in situations like this, either freset(unstage)or fcheckout would be your option. Please take a look at the (git checkout -- file ) and (git reset) document to see which one fits your need better |
@ kahzal ANyway, I hadn't had the additions up on github remote repo, these were new additions, ready for commit. Because dotbare acts on the actual local files in one's local config dir to mirror the old branch checked out, it had deleted them all, leaving only the initial one or tow test config files I had added! luckily I keep a backup! I likely could have somehow found those 'additions' somewhere in cache, but decided to simply restore from local backup and start over again with dotbare on my local repo. That is, because I otherwise couldn't get rid of the ??missing_Filename.config marks in the list. Well, perhaps if I had re-added my config files after restoring form backup, they may have disappeared; but starting again amounted to the same thing anyway. I had to add those again. Now I have a grip on it, all is OK and it's very nice to have all one's config files at hand in one command. |
I am new to dotbare it seems great. Rather special
Before I resort to my disk backup of yesterday, (and saving about an hours work in changes since then), am i able somehow to retrieve lost files?
I staged a first commit , pushed to git, with just a read me, and then ,
I attempted and succeeded to revert to the 1 st commit,.. in order not to use a detached branch, for newly added/ and staged files.
I see in fedit, and in checkout that the .config files have disappeared from my disk and in 'fedit' they are visible in red with a ?? preceding.
1 st commit remains.
Only the 12 files from home directory remain, staged and ready.
Second commit has vanished.
Thanks,
John
I don't see them in trashes.
The text was updated successfully, but these errors were encountered: