我有2个git本地存储库,它们都指向同一个远程存储库.
在一个git存储库中,如果我这样做git format-patch 1,如何将该补丁应用于其他存储库?
我正在寻找从最后一次提交创建补丁的神奇命令.
我的工作流程有时看起来像这样
vi some.txt
git add some.txt
git commit -m "some change"
Run Code Online (Sandbox Code Playgroud)
现在我只想写
git create-patch-from-last-commit-to-file SOME-PATCH0001.patch
Run Code Online (Sandbox Code Playgroud)
但是我应该把它放在那里而不是create-patch-from-last-commit-to-file?
双方git am并git apply可以用来应用补丁.我没有看到差异.我现在看到了一个区别:git am自动提交而git apply只触及文件但不创建提交.这是唯一的区别吗?
我正在尝试发送补丁git send-email但是我得到以下错误:
git: 'send-email' is not a git command. See 'git --help'.
Run Code Online (Sandbox Code Playgroud)
怎么做git send-email作品?
相关链接:
http://www.kernel.org/pub/software/scm/git/docs/git-send-email.html
我想使用git send-mail上游提交补丁,但我的Gmail帐户使用双因素身份验证.谷歌为这样的事情提供了应用程序专用密码,但我的问题是存储此密码以便与git send-mail一起使用的安全位置在哪里?