Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
愚かな新人の間違い。/usr/local/Library で git リポジトリを初期化します。
git init git add -A
おっと、これらすべてのファイルをコミットしたくありません
git rm -rf . ls # EMPTY
最初のコミットを行っていないため、git reset HEAD機能しません。/usr/local/Library ディレクトリの内容を復元する方法はありますか?
git reset HEAD
これを試してみたところ、運が悪いようです。
OS X または Linux を使用している場合は、次のコマンドで .git フォルダーを調べてみてください。
find .git -type f