Skip to content

Git 相关命令,包含 git-patch

Git 打补丁( Patch )

补丁中涉及多个文件的 diff,此时如何打补丁: git apply new.patch

new.patch 例子:new.patch

Github 本地 commit 后网页活动栏没有显示

先看是不是 fork 的别人仓库,如果是的话则活动栏就是不显示

之后就使用 git status 看一下提交的情况,如果看到邮箱或用户名不一致,那也不行。
所以要设置一下: git config --local user.name "xxx", 邮箱同理

Comments