2021年4月30日 星期五

Git 如何刪除 孤兒 commit(s) 提交(s)

**什麼是孤兒commits**  就是不在任何 branch 之下或tag標記, 通常是delete branch/merge 造成

#git 用 commandline 通常看不到這些孤兒, 但是 #git gui  內 Repository - Virsualize All Branch History , 在裏面就看得到.

可以用

$ git reflog expire --expire=now
$ git gc --prune=now


Ubuntu 18.04 讀卡機 driver , ( IT-500U )

# ubuntu 18.04.06 , Let   (info-think it-500U card-reader) driver work $sudo apt-get install build-essential libusb-1.0-0-dev libpcsclite-de...