用 git 劫持你的工作?
情况是这样的...
我需要能够将 git 存储库分支变基到某个时间点,然后删除(并隐藏或保留)我在该时间点之后的提交。保留重新应用所有内容的能力...但不让它们存在于远程存储库中...
更好的解决方案)
原因(也许您会有 我已经从事了几个月的合同工作,但他们拒绝付款...我希望能够将回购协议倒回到我参与的开始,删除(并存储)我的工作以重新开始-应用于付款..
复杂的问题是有其他用户同时提交,我不想删除它们,但如果我撤回间歇性提交并尝试在同一点运行存储库(不倒回活动副本),它显然会中断。
有想法吗? (技术)...考虑过使用 git 补丁吗?
Here's the situation...
I need to be able to rebase a git repository branch to a point in time, then remove (and stash or keep) my commits beyond that point in time. Retaining the ability to re-apply every thing... but not having them living in the remote repository...
Reason (maybe you'll have a better solution)
Have a contract job that I've been working on for a few months, and they are refusing to pay... I want to be able to rewind the repo to the beginning of my involvement, remove ( and store) my work to be re-applied on payment..
The complicated issue is that there have been other users committing in tandem and I don't want to remove those, but it will obviously break if I yank intermittent commits and attempt to run the repo at the same point (not-rewinding the active copy).
Ideas? (Technical) ... Thought about using a git patch?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建一个远程跟踪“付费”分支(可能是主分支)和一些功能(人质)分支。一旦你收到钱,你就可以将你的功能重新定位到付费分支并将其推送给你的客户。
Create a remote tracking 'paid' branch (could be the master branch) and some feature (hostage) branches. As soon as you get your money, you rebase your features onto the paid branch and push it to your client.