![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
pl在之心
立足当下
展开
-
git如何统计代码提交行数
1. 问题如何查看每个人的代码提交行数2. 实现2.1 查看git上个人代码量// 修改usernamegit log --author="username" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s...原创 2020-03-13 11:26:04 · 4784 阅读 · 0 评论 -
gitlab上先创建项目并存在文件,本地代码如何提交到该仓库
1. 本地git initgit init2. 本地关联上远程$ git remote add origin https://github.com/user/repo.git3. 从远程拉取最新代码git pull origin master4. 本地addgit add .5. 本地commitgit commit -m 'init'...原创 2020-02-25 09:35:34 · 1948 阅读 · 0 评论