常見命令不再說明:
1.提交失誤,想回滾到某一版本。
git log
git reset --hard ca0a13f0c3758933810b9b0b3da579a31548373e? //找到commitId為要恢復(fù)的目標(biāo)版本
git push origin HEAD --force
2.禁止mac生成 .Ds_Store文件
find ~/Documents -name ".DS_Store" -type f -delete
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
sudo reboot