简体   繁体   English

Git隐藏可以应用其他用户创建的隐藏吗?

[英]Git stash possible to apply stash created by another user?

I want to share my stash with my friend and looking for ways to "upload" my stash to the git repo so that he/she can "download" the stash. 我想与朋友共享我的存储,并寻找将其存储“上载”到git repo的方法,以便他/她可以“下载”该存储。

Is that possible and if yes, how to do it? 那有可能吗,如果可以,怎么办?

创建一个分支,将该存储区应用于该分支,然后将该分支推送到共享存储库。

PyCharm has a feature call shelve changes details ie similar to SVN shelve . PyCharm具有一个功能调用,即shelve changes 详细信息,即类似于SVN搁置 So if you use this IDE, proceed steps below. 因此,如果您使用此IDE,请执行以下步骤。

  1. Shelve your changes 搁置您的更改
  2. Commit-push PyCharm project data ie .idea/shelf folder 提交推送PyCharm项目数据,即.idea/shelf文件夹

Other teammates will just git-pull your shelve changes and unshelve in PyCharm. 其他队友只会unshelve您的搁置更改,搁置在PyCharm中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM