git stash save和git stash push有什么区别? [英] What's the difference between git stash save and git stash push?

查看:1594
本文介绍了git stash save和git stash push有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

何时应该使用 git stash save 而不是 git存储推送,反之亦然?

解决方案

git stash save 接受单个非选项参数 - 存储消息。 / p>

git stash push 接受带选项 -m 并接受一个文件列表作为参数存储。


When should I use git stash save instead of git stash push and vice-versa?

解决方案

git stash save accepts a single non-option argument — the stash message.

git stash push accepts the message with option -m and accepts a list of files to stash as arguments.

这篇关于git stash save和git stash push有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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