Skip to content

Instantly share code, notes, and snippets.

@SpaceShot
Created November 17, 2016 15:50
Show Gist options
  • Save SpaceShot/25c5df352fc70e953b06bebe1ae58824 to your computer and use it in GitHub Desktop.
Save SpaceShot/25c5df352fc70e953b06bebe1ae58824 to your computer and use it in GitHub Desktop.
Git Live updates with PowerShell
# could make this an argument
cd C:\testing\poems
DO
{
clear
# could use where to figure out where git is instead of hardcoding
C:\Users\cgomez\AppData\Local\GitHub\PortableGit_284a859b0e6deba86edc624fef1e4db2aa8241a9\cmd\git.exe log --oneline
Start-Sleep -s 1.4
}
WHILE (1 -eq 1)
# could make this an argument
cd C:\testing\poems
DO
{
clear
tree /F
"*******************************"
# could use where to figure out where git is instead of hardcoding
C:\Users\cgomez\AppData\Local\GitHub\PortableGit_284a859b0e6deba86edc624fef1e4db2aa8241a9\cmd\git.exe status
Start-Sleep -s 1.4
}
WHILE (1 -eq 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment