chrishey
chrishey

Reputation: 451

Performing a git command in a powershell script

I am working on a few powershell scripts to automate some common tasks i do every day.

I would like to be able to write one that does a pull of the latest code using git and opens the VS solution. I can do the opening of the solution, what i need help with is calling git pull from a powershell script.

I tried git pull <repo name> in my script, however it doesn't recognise the git command.

Thanks in advance.

Chris

Upvotes: 0

Views: 319

Answers (1)

Joey
Joey

Reputation: 354834

You either need git in your PATH environment variable, or have an App Paths entry for git or specify the full path to your git executable.

Upvotes: 1

Related Questions