
Git
山东馍馍
便宜、听话、能加班~
展开
-
Git统计某人commit次数、代码量
1、统计某人提交次数git log --author=zhouguanghao --since=“2020-12-02” --no-merges | grep -e ‘commit [a-zA-Z0-9]*’ | wc -l2、统计某人代码提交量git log --author=zhouguanghao --pretty=tformat: --numstat | awk ‘{ add += $1; subs += $2; loc += $1 - $2 } END { printf “added lin原创 2021-10-07 20:08:56 · 3812 阅读 · 0 评论 -
玩转Git-Git基础-复习篇
一、新建Git仓库的两种情况:一、已有代码加入Git管理cd 项目文件夹git init二、新建全新项目使用Git管理git init new_project二、工作区和暂存区git status 查看当前仓库状态git log 查看操作日志...原创 2020-12-09 21:16:56 · 235 阅读 · 0 评论 -
Github
https://leo-gh.github.io/https://github.com/Leo-GH原创 2019-03-13 20:06:52 · 255 阅读 · 0 评论 -
Github
1.C:\Windows\System32\drivers\etc打开这个文件夹,会看到hosts文件2.用记事本打开这个hosts文件,在最后添加如下两行并保存192.30.253.112 github.com151.101.185.194 github.global.ssl.fastly.net3.刷新DNS缓存,打开cmd,输入ipconfig/flushdns4.重启浏览...原创 2020-04-21 09:50:39 · 788 阅读 · 0 评论 -
Git多用户管理
配置git账户git config --list #查看当前配置git config --list [--local] #查看当前仓库配置git config --list --global #查看全局配置配置全局账户(配置文件位于 ~/.gitconfig中)git config --global user.name "your_name" # 如果是提到github上,your_...原创 2019-07-04 14:03:52 · 667 阅读 · 0 评论