This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script will sync the specified Git repository. | |
# Schedule this script with the scheduler of your choosing to automate it. | |
$RepoPath = "C:\Repositories\brain2.0\" | |
cd $RepoPath | |
git pull | |
# Detect if there are any git changes. | |
$HasChanges = git status --porcelain | |
if (-Not $HasChanges) | |
{ |