Skip to content

Instantly share code, notes, and snippets.

@ngohungphuc
Last active March 5, 2020 13:04
Show Gist options
  • Save ngohungphuc/0f95171ab8175ffc6ccc521207ecc023 to your computer and use it in GitHub Desktop.
Save ngohungphuc/0f95171ab8175ffc6ccc521207ecc023 to your computer and use it in GitHub Desktop.
trigger:
- master
pool:
vmImage: 'windows-2019'
steps:
- script: |
git config --global core.longpaths true
git config --global user.email "your email"
git config --global user.name "your github user name"
git checkout master
git pull --all
git add .
git commit -m "sync from azure devops"
git push https://$(git_token)@github.com/user_name/repo_name.git -f
displayName: 'Run git sync'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment