Những mẹo Git giúp cuộc sống dễ dàng hơn
(opensource.com)Tự động sửa lỗi gõ sai $ git config --global help.autocorrect 1
Đếm số commit $ git rev-list --count
Tối ưu hóa repo $ git gc --prune=now --aggressive
Sao lưu các tệp bị loại khỏi theo dõi $ git ls-files --others --exclude-standard -z | xargs -0 tar rvf ~/backup-untracked.zip
Xem tệp từ nhánh khác $ git show main:README.md
Tìm kiếm trong Git $ git rev-list --all | xargs git grep -F ‘’
Hiểu về thư mục .git
$ cat .git/HEAD
$ cat .git/description
Chưa có bình luận nào.