$branch = git rev-parse --abbrev-ref HEAD
$ssha = git rev-parse --short head
$filePath = Join-Path -Path (Get-Location) -ChildPath "source_commit"
[System.IO.File]::WriteAllLines($filePath, "Sync updates from "+$branch+" in general repo(Commit SHA:"+$ssha+")to security repo")
mv .git OriginGit
mv AdvSecurityGit .git
git add -A
git commit -a -F source_commit
git push
mv .git AdvSecurityGit
mv OriginGit .git
git add -A
git commit -a -F source_commit
git push
Remove-Item "source_commit"