查看git倉(cāng)庫(kù)大小
git count-objects -vH
git count-objects -vH
count: 790
size: 17.96 MiB
in-pack: 88380
packs: 28
size-pack: 2.30 GiB
prune-packable: 31
garbage: 0
無(wú)視本地變動(dòng)蜘欲,直接以遠(yuǎn)程庫(kù)為主
- git三連 (可以弄成別名)
git fetch --all
git reset --hard origin/master
git pull
多指令別名綁定
[alias]
ad = "!git init; git commit --allow-empty -m \"empty initial commit\""
-
帶運(yùn)算符多指令