0

I was working on some functionality on my-branch and I have to stop and move on but the work on my-branch is not completed and another developer will take it ower.

I also dont want to push my-branch work to remote yet. Just want to be able to somehow save it and send it as a zip or so to the developer so he can apply it to his fresh clone and continue working on it.

I know of git stash but that is for stashing uncommitted changes, it does not sound like something I need.

How can I do this in git?

4

1 回答 1

0

提交你未完成的东西......在评论中说“(未完成)等等等等”。然后,运行git format-patch HEAD~3(比如说....为当前分支上的最后 3 个修订创建补丁)。然后将 git 生成的 .patch 文件发送出去。另一个人必须取 3 个补丁并使用git am.

于 2018-11-08T14:44:51.477 回答