git 小操作

代码数量查看

git log --format=’%aN’ | sort -u | while read name; do echo -en
“KaTeX parse error: Expected 'EOF', got '\t' at position 5: name\̲t̲"; git log --au…name” --pretty=tformat: --since
==2019-10-01 --until=2020-01-15 --numstat | awk ‘{ add += $1; subs += $2; loc += $1 - $2 } END { printf “added lines: %s, removed lines: %s,
total lines: %s\n”, add, subs, loc }’ -; done

同步本地和远程仓库

git remote prune origin

从线上拉相同分支

git fetch origin feat-qq-change:feat-qq-change

你可能感兴趣的:(git 小操作)