如何使用Git进行预先结帐 [英] How to do a pre-checkout with Git
本文介绍了如何使用Git进行预先结帐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在特定分支上执行 git checkout
之前移动一些文件,并执行一些脚本。
I would like to move some files before doing a git checkout
on a specific branch, and to execute some scripts.
我没有办法做别名来检查我的脚本,我真的需要一个钩子。
There is no way to do an alias to checkout with my scripts, I really need a hook.
我看到很多链接,结帐挂钩尚未实施。
有没有办法做到这一点?
I saw many links and it seems the the pre-checkout hook is not yet implemented. Is there a way to do so?
推荐答案
使用`git stash'可能是你想要的。
Use `git stash´ may be that you want.
这篇关于如何使用Git进行预先结帐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文