PJ *_*net 3 git command-line-interface
如果我git status从CLI进行操作,我只想按上下箭头选择带有空格键的文件,以选择要“添加”到提交中的文件。例如:
[ ] modified: whatever.txt
[*] modified: whatever2.txt
Run Code Online (Sandbox Code Playgroud)
what2.txt将会很容易地添加。
在我看来像这样的东西应该已经存在?更具体地说,我希望该解决方案使用bash CLI。
git add -i
Run Code Online (Sandbox Code Playgroud)
提供了一个用于登台的交互式UI。但是,这与您的期望不同,但有所不同。您可以在此处查看文档。
还有npm包git-add-interactive,您可以签出。