git藏匿堆栈推到远程repo? [英] Is git stash stack pushed to the remote repo?

查看:115
本文介绍了git藏匿堆栈推到远程repo?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的存储堆栈是否推向远程回购?还是完全被忽略?我只是好奇,如果我应该倾向于它每隔一段时间放弃一些,以节省服务器上的空间。

Is my stash stack pushed to the remote repo? Or is it completely ignored? I'm just curious if I should tend to it every once in a while to drop some of it to save space on the server.

推荐答案

没有。绦带是本地的。

No. Stashes are local.

$ man git储存

$ man git stash:


当您想要记录工作目录和索引的当前状态时使用git存储,但想要返回到干净的工作目录。该命令将保存您的本地修改,以恢复工作目录以匹配HEAD提交。

Use git stash when you want to record the current state of the working directory and the index, but want to go back to a clean working directory. The command saves your local modifications away reverts the working directory to match the HEAD commit.

我不会将它们保留太多尽管在本地。随着时间的推移,你会失去他们的踪迹,他们会变得有些无用。

I wouldn't keep too many of them around locally though. You'll lose track of them over time and they'll become somewhat useless.

这篇关于git藏匿堆栈推到远程repo?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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