0

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

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, once i read your answer i couldn't believe i hadn't checked the git was in my PATH variable. I assumed it would have been set when git was installed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.