原创

git 常用设置

温馨提示:
本文最后更新于 2022年02月08日,已超过 806 天没有更新。若文章内的图片失效(无法正常加载),请留言反馈或直接联系我

#初始化设置

git config --global user.name "your name"

git config --global user.email "you@example.com"

#设置别名

git config --global alias.co checkout

git config --global alias.br branch

git config --global alias.st status

git config --global alias.ci commit

常用命令

git fetch --prune origin

git push origin --delete tobeDeleteBr

git log --since='2019-06-15' --until='2019-12-31' --author="huxi" --format='%aN'

git log --since='2019-06-15' --until='2019-12-31' --author="huxi" --numstat --pretty=tformat:--no-merges

更新本地远程分支信息:git remote update origin --prune
git remote prune origin


正文到此结束