如何使之前的提交看起来像是在实时工作?

时间:2015-08-10 02:19:08

标签: git shell push git-rebase git-reset

让我们假设全天都提交了一系列提交:

[1:00pm] $ commit -am "commit 1"
[2:00pm] $ commit -am "commit 2"
[3:00pm] $ commit -am "commit 3"

我不想一次推送所有这些提交,而是重播提交,同时在延迟时间推送每个提交。

如何使用新的未来时间戳一次推送一个提交,以便在上游看到更改正在实时处理?

[1:00pm] $ commit -am "commit 1"
[2:00pm] $ commit -am "commit 2"
[3:00pm] $ commit -am "commit 3"

[3:00pm] $ ./begin-pushing

[4:00pm] $ push; #upstream sees commit 1 was done at 4:00pm
[5:00pm] $ push; #upstream sees commit 2 was done at 5:00pm
[6:00pm] $ push; #upstream sees commit 3 was done at 6:00pm

0 个答案:

没有答案