有没有一种方法可以从 git 存储库一次性更新我的所有 textmate 包?
我正在尝试将所有 Textmate 捆绑包更新到最新版本。有没有一种方法可以做到这一点,而无需单独执行每个捆绑包?如果不是,我该如何更新单个捆绑包?我不知道如何使用 svn 所以我更喜欢使用 git 存储库。
感谢您帮助菜鸟! :)
I am trying to update all of my Textmate bundles to the most current version. Is there a way to do this without doing each bundle individually? If not how do I update an individual bundle? I don't know how to use svn so I would prefer to use the git repository.
Thanks for helping a noob! :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您不想采用“获取捆绑包”路线(本身没有理由不这样做,但我认为我可以提供替代方案),这是我用来管理捆绑包的脚本:
我将其放入
/库/应用程序支持/TextMate/Bundles
。每当我想更新所有包时,我都会导航到那里并运行它。它循环遍历每个包并通过适当的版本控制机制(Subversion 或 Git)进行更新。If you don't want to go the Get Bundles route (and there's no reason not to per se, but I thought I'd provide an alternative), here's a script I use to manage my bundles:
I threw this in
/Library/Application Support/TextMate/Bundles
. Whenever I want to update all my bundles, I navigate there and run it. It loops through each bundle and updates via the appropriate version control mechanism (Subversion or Git).您可以安装“Get Bundles”(带有“s”而不是“Get Bundle”——这是一个不同的 Bundle) 捆绑包
要安装:(
或者,您可以从 git 获取“Get Bundles”捆绑包。)
安装后,您可以可能需要重新启动 TextMate。
接下来,单击菜单栏中的“Bundles”,然后单击“Get Bundles”,这将弹出一个小子菜单;
单击该子菜单中的“获取捆绑包”。
这将打开“获取捆绑包”GUI。左上角有四个按钮,分别指四个不同的存储库(“官方”、“审阅”、“第 3 方”和“全部”)。
单击最右侧的按钮“全部”
在 GUI 的左下角,单击“齿轮菜单”,将弹出一个菜单,单击该菜单中的“安装所有更新”(也可以使用 cmd-U 访问) 。
You can install the "Get Bundles" (with an "s" not "Get Bundle"--that's a different Bundle) Bundle
To install:
(Alternatively, you can grab the "Get Bundles" Bundle from git.)
Once installed, you probably need to re-start TextMate.
Next, click "Bundles" in the Menu Bar, then click "Get Bundles" which will bring up a small sub-menu;
Click "Get Bundles" in that sub-menu.
This will bring up the Get Bundles GUI. In the upper left-hand corner are four buttons that refer to four different repositories ("Official", "Review", "3rd Party", and "All").
Click the right-most button "All"
In the bottom left-hand cornder of the GUI, click the "gear menu" which will bring up a menu, click "Install all Updates" from that menu (also accessible with cmd-U).
您有各种脚本来帮助处理子模块的递归方面:
另外,
git submodules
命令现在附加了一个递归选项给他们。You have various scripts out there to help deal with the recursive aspect of submodules:
Plus the
git submodules
commands have now a recursive option attached to them.