生活を楽にしてくれる Git のヒント集
(opensource.com)タイプミスの自動修正 $ git config --global help.autocorrect 1
コミット数を数える $ git rev-list --count
リポジトリの最適化 $ git gc --prune=now --aggressive
追跡対象外ファイルをバックアップする $ git ls-files --others --exclude-standard -z | xargs -0 tar rvf ~/backup-untracked.zip
別のブランチのファイルを見る $ git show main:README.md
Git を検索する $ git rev-list --all | xargs git grep -F ‘’
.git フォルダを理解する
$ cat .git/HEAD
$ cat .git/description
まだコメントはありません。