ToAdvanceSecurity.ps1 315 B

1234567891011
  1. $branch = git rev-parse --abbrev-ref HEAD
  2. $ssha = git rev-parse --short head
  3. [System.IO.File]::WriteAllLines("source_commit", $branch+" "+$ssha)
  4. mv .git OriginGit
  5. mv AdvSecurityGit .git
  6. git add -A
  7. git commit -a -F source_commit
  8. git push
  9. Remove-Item "source_commit"
  10. mv .git AdvSecurityGit
  11. mv OriginGit .git