Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我用另一个分支打开 tig:
tig otherBranch
是否可以导航到树视图找到我想要的文件并将其签出到我当前的分支?
是的,您必须在 中添加用户定义的命令~/.tigrc,例如:
~/.tigrc
bind generic ^F !?git checkout %(commit) %(file)
然后打开tig otherBranch,按t转到树视图,导航到文件并按Ctrl-F。
t
Ctrl-F