当我使用git bash时,我不能使用nbdime提供的jupyter笔记本电脑的差分和合并。 但是,当我使用cmd控制台时,它可以工作
我已经从git-scm-website安装了git(包括GitBash)
我已使用pip在anaconda中安装了nbdime,如nbdime-website上所述。
我还按照corresponding page上描述的将nbdime功能集成到git中的所有说明进行了操作。即:
nbdime config-git --enable --global
我还修改了我的全局.gitconfig
-文件,以使用图形差异作为标准。现在看起来是这样的:
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = UserName
email = UserEmail
[diff "jupyternotebook"]
command = git-nbdiffdriver webdiff
[merge "jupyternotebook"]
driver = git-nbmergedriver merge %O %A %B %L %P
name = jupyter notebook merge driver
[difftool "nbdime"]
cmd = git-nbdifftool diff \"$LOCAL\" \"$REMOTE\" \"$BASE\"
[difftool]
prompt = false
[mergetool "nbdime"]
cmd = git-nbmergetool merge \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
[mergetool]
prompt = false
如前所述,它在cmd控制台中工作。但是,当我想要区分或合并jupyter笔记本电脑时,我不想一直在bash和cmd之间切换
当我在bash中使用diff命令时,我得到如下结果:
或者,当我在bash中使用merge命令时,会得到如下结果:
它总是说“找不到命令”。有没有办法解决这个问题?
也许是安装了nbdime(使用anaconda)
目前没有回答
相关问题 更多 >
编程相关推荐