zeroch's recent timeline updates
zeroch

zeroch

V2EX member #66306, joined on 2014-06-26 23:39:23 +08:00
zeroch's recent replies
Aug 1, 2016
Replied to a topic by zeroten git git 如何用 revert 回滚代码到某个 commit?
你要知道, 如果你在 remote master branch 上进行了回滚操作,然后在 push 回到 master 上面.那么, 无论如何你已经和 diverge, *不可避免*的对别人造成影响..

如果你在 local 的任意 branch 上操作..上面的回复说的, 不论是 reset 还是 checkout 都是可以的。甚至还有一种方法.你先 checkout 1, 然后从 1 到 4 进行 cherry-pick 。 cherry-pick 不会 hash 出新的 commit id 。
1. Multiple Remote. 你在本地保持一个fork过来的branch. keep update it. (git remote add & git fetch or git pull).
2. git merge, 保持好你自己的branch的时候, merge对面的branch过来..解决confilct的问题.
3. 再次提交Pull request的时候, rebase好你的tree. 只提交必要的commit.
美国留学党一枚, 也许留学党不是作为目标用户的. 貌似对美国的电话号码支持不好.. 不知道怎么填手机号码, 只好在前面加上+1. 不知道你们能不能识别.
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1007 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 18:59 · PVG 02:59 · LAX 11:59 · JFK 14:59
♥ Do have faith in what you're doing.