![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
lerio_cheng
这个作者很懒,什么都没留下…
展开
-
git refusing to merge unrelated histories
问题 refusing to merge unrelated histories 本地源没有相关提交记录的仓库到远程: 解决方法: //让远程仓库信任本地的源 git pull origin master ----allow-unrelated-histories原创 2018-02-02 14:49:40 · 159 阅读 · 0 评论 -
git s回滚远程仓库
步骤 git reset –hard < –commit > git push origin HEAD –force原创 2018-06-20 10:49:37 · 122 阅读 · 0 评论 -
git 统计代码量
统计某人的提交的代码总量,包括增加,删除 git log --author="$(git config --get user.name)" --pretty=tformat: --numstat | awk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "added lines: %s removed lines : %s t...转载 2018-08-15 16:38:15 · 953 阅读 · 0 评论