Added a comment: Reproducible Example
This commit is contained in:
parent
5c467179c4
commit
b4ac551d06
1 changed files with 48 additions and 0 deletions
|
@ -0,0 +1,48 @@
|
||||||
|
[[!comment format=mdwn
|
||||||
|
username="Albert"
|
||||||
|
avatar="http://cdn.libravatar.org/avatar/79aaf48dabedd7cd96a9117685fbe2cc"
|
||||||
|
subject="Reproducible Example"
|
||||||
|
date="2022-04-29T15:57:34Z"
|
||||||
|
content="""
|
||||||
|
Fast reproducible example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
❯ mkdir annextest && cd annextest
|
||||||
|
❯ git init
|
||||||
|
Initialized empty Git repository in ./annextest/.git/
|
||||||
|
❯ git annex init
|
||||||
|
init ok
|
||||||
|
(recording state in git...)
|
||||||
|
❯ echo \"some data\" > testfile
|
||||||
|
❯ git status
|
||||||
|
On branch master
|
||||||
|
|
||||||
|
No commits yet
|
||||||
|
|
||||||
|
Untracked files:
|
||||||
|
(use \"git add <file>...\" to include in what will be committed)
|
||||||
|
testfile
|
||||||
|
|
||||||
|
nothing added to commit but untracked files present (use \"git add\" to track)
|
||||||
|
❯ git annex add .
|
||||||
|
add testfile
|
||||||
|
ok
|
||||||
|
(recording state in git...)
|
||||||
|
❯ git annex sync --content
|
||||||
|
commit
|
||||||
|
[master (root-commit) d5dfa14] git-annex in user@dev:~/annextest
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
create mode 120000 testfile
|
||||||
|
ok
|
||||||
|
❯ git annex repair
|
||||||
|
repair Running git fsck ...
|
||||||
|
Fsck found no problems. Checking for broken branches.
|
||||||
|
Found problems, attempting repair.
|
||||||
|
Some git branches refer to missing objects:
|
||||||
|
refs/annex/last-index
|
||||||
|
To force a recovery to a usable state, retry with the --force parameter.
|
||||||
|
failed
|
||||||
|
repair: 1 failed
|
||||||
|
```
|
||||||
|
|
||||||
|
"""]]
|
Loading…
Add table
Add a link
Reference in a new issue