Search code examples
windowsgitbashbranchmsysgit

How do I use git-new-workdir on windows?


I have a repo that has two branches, which i would like to work on simultaneously. After some reading I found git has a script git-new-workdir.


Im trying run use the script from the git for windows bash but get the following error.

$ git-new-workdir
sh: git-new-workdir: command not found

How do I use this script on windows?


Solution

  • Due to some of the commands in the git-new-workdir functions not existing on windows, the script won't work.


    I have found this windows port of the script. Works great for me.

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