How do I make a GIT Repo auto pull changes?

Hi,

I have a number of GIT repositories on a Windows 2008 R2 server, I would like to know if there is a way to get a repository to auto-pull pushed changes?

I will certainly not be doing this for the production / live environment but for staging / test environment this would significantly speed up the process of deploying the code for testing.

Any ideas of how to do this?
Jeremy LeysTechnical LeadAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aaron TomoskyDirector of Solutions ConsultingCommented:
generally you use a CI/CD tool to manage all that sort of thing. They all run as a server and they will poll your repo for changes and do all sorts of anything using scripts.

Personally I use go, it's free without support.
http://www.thoughtworks.com/products/go-continuous-delivery

These ones are also frequently mentioned: jenkins, team city, tfs (microsoft team foundation server)

If you want to do it manually, you can add a "hook" and most version control has that functionality.
http://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeremy LeysTechnical LeadAuthor Commented:
Awesome, "GO" is the solution for me, works like a charm! :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Git

From novice to tech pro — start learning today.