是否有可能将git存储推送到远程存储库? [英] Is it possible to push a git stash to a remote repository?

查看:87
本文介绍了是否有可能将git存储推送到远程存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在git中,是否可以创建一个存储,将存储推送到远程存储库,在另一台计算机上检索存储并应用存储?



或者是我的选择:




  • 创建补丁并将补丁复制到另一台计算机或
  • 创建一个次要分支并将不完整的工作提交给该分支


无法通过fetch获取它,镜像refspec是 fetch = + refs / *:refs / * ,即使存储 refs / stash ,它也不会被发送。明确的 refs / stash:refs / stash 也没有效果!



无论如何,不会取所有的藏品,只有最新的藏品; stash的列表是ref refs / stashes reflog


In git, is it possible to create a stash, push the stash to a remote repository, retrieve the stash on another computer, and apply the stash?

Or are my options:

  • Create a patch and copy the patch to the other computer, or
  • Create a minor branch and commit the incomplete work to that branch?

解决方案

It's not possible to get it via fetch or so, the mirror refspec is fetch = +refs/*:refs/*, and even though stash is refs/stash it doesn't get sent. An explicit refs/stash:refs/stash has no effect either!

It would only be confusing anyway since that wouldn't fetch all stashes, only the latest one; the list of stashes is the reflog of the ref refs/stashes.

这篇关于是否有可能将git存储推送到远程存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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