我知道如何解决这个问题:
user@host$ git pull
Updating 9386059..6e3ffde
error: Your local changes to the following files would be overwritten by merge:
foo.bar
Please, commit your changes or stash them before you can merge.
Aborting
Run Code Online (Sandbox Code Playgroud)
但是,是不是有办法让git pull做stash和pop舞蹈给我吗?
如果此命令具有不同的名称,则可以.
创建shell别名git stash; git pull; git stash pop是一种解决方案,但我寻找更好的解决方案.
我正在使用GIT来管理内容管理系统(CMS)项目.CMS可以有多个插件(模块).
所以基本上,我想拥有3种类型的存储库:
对于类型1和类型2,我猜它是简单的基本存储库.但当涉及到客户项目时,我感到困惑:
所以问题是:我应该如何组织存储库/文件/文件夹以提高效率?