Launch non-blocking process from powershell

前端 未结 3 1852
梦如初夏
梦如初夏 2021-01-18 01:24

I\'m writing a powershell script that needs to push code to several git repositories simultaneously?

Here\'s the script I have thus far:

param(
    [         


        
相关标签:
3条回答
  • 2021-01-18 02:05

    You can also use start-process to run each push in an additional command window.

    start-process -FilePath "git" -ArgumentList ("push", $_,  "master", "--fore", "-v") 
    
    0 讨论(0)
  • 2021-01-18 02:09

    How about start git "push $_ master --force -v"

    0 讨论(0)
  • 2021-01-18 02:21

    Micah, you can use start-job to run it in background - http://technet.microsoft.com/en-us/library/dd347692.aspx

    0 讨论(0)
提交回复
热议问题