如何在Windows上使用git-new-workdir?

Blo*_*sie 5 windows git bash branch msysgit

我有一个有两个分支的回购,我想同时处理.经过一番阅读后,我发现git有一个脚本git-new-workdir.


我尝试运行使用git for windows bash中的脚本,但得到以下错误.

$ git-new-workdir
sh: git-new-workdir: command not found
Run Code Online (Sandbox Code Playgroud)

如何在Windows上使用此脚本?

Blo*_*sie 5

由于git-new-workdirWindows中不存在函数中的某些命令,脚本将无法工作.


我找到了脚本的这个windows端口.对我来说很棒.

https://github.com/joero74/git-new-workdir

  • PowerShell版本:https://gist.github.com/ajryan/ba2339a2314a74781898 (3认同)