在git中format-patch
是一种将在离线服务器上的提交同步到可连接git服务器的方法。
- 在离线机器上的git repo 生成
.patch
文件。
git format-patch -1 HEAD
- 从离线机器将file.patch文件复制到可联网的机器的git repo。
- 同步patch。
git am < file.patch
在git中format-patch
是一种将在离线服务器上的提交同步到可连接git服务器的方法。
.patch
文件。git format-patch -1 HEAD
git am < file.patch