Git:是否有像TFS搁置的功能? [英] Git: is there a functionality like the TFS shelveset?

查看:119
本文介绍了Git:是否有像TFS搁置的功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试保存一个统一差异,但找不到一种方法来应用它。

I tried by saving a "unified diff", but couldn't find a way to apply it.

补丁适用于所做的更改, t想要提交没有适当的代码审查。

And patches work on commited changes, and I don't want commits without proper code reviews.

想法感谢!

推荐答案

搁置只是临时分支。所以 - 只需建立新的分支。 Git中的分支非常轻便,因此创建,推送和从服务器删除非常简单快捷。你可以命名它,即 wip-blabla ,以通知它仍然没有准备好。

Shelvesets are just temporary branches. So - just make new branch. Branches in Git are very lightweight so creating, pushing and removing from server is very simple and fast. You can name it i.e. wip-blabla to notify that this is still unready.

这篇关于Git:是否有像TFS搁置的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆