Skip to content

Instantly share code, notes, and snippets.

@jhazelwo-charter
Created March 31, 2017 16:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhazelwo-charter/bc161c162fffd156f9a4db9ce7a884ad to your computer and use it in GitHub Desktop.
Save jhazelwo-charter/bc161c162fffd156f9a4db9ce7a884ad to your computer and use it in GitHub Desktop.
A 1-button git add, commit and push Powershell script using the Windows GitHub client.
$env:Path += ";C:\Users\me\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\cmd"
. C:\Users\me\AppData\Local\GitHub\PoshGit_73b8bf9c588df6d17c193e270da0ed4cf890d868\GitUtils.ps1
Start-SshAgent -Quiet
Add-SshKey C:\Users\me\.ssh\github_rsa
cd C:\Users\me\Art\docs\
git add -A .
git commit -m 'auto'
git push -u origin master
cd C:\Users\me\Art\sh\
git add -A .
git commit -m 'auto'
git push -u origin master
Stop-SshAgent
@gamesthings
Copy link

Actually file download below
download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment