mastodon.zunda.ninja is one of the many independent Mastodon servers you can use to participate in the fediverse.
Zundon is a single user instance as home of @zundan as well as a test bed for changes of the code.

Administered by:

Server stats:

1
active users

お!って思ったけどgit addしてない編集は復活しなさそうなふいんきだった

git addだけじゃ覚えてくれてなかった

$ git init
$ echo 'Hello, World!' > test.txt
$ git add test.txt
$ git reset --hard
$ cat test.txt
cat: test.txt: No such file or directory
$ git reflog
fatal: your current branch 'master' does not have any commits yet

zunda

$ echo 'Hello, World!' > test.txt
$ git add test.txt
$ git commit -m 'first commit'
[master (root-commit) eab266a] first commit
1 file changed, 1 insertion(+)
create mode 100644 test.txt
$ git reflog
eab266a HEAD@{0}: commit (initial): first commit

この場合はgit reset自体ができないw

$ git reset --hard HEAD~ --
fatal: Failed to resolve 'HEAD~' as a valid revision.