Skip to content

Instantly share code, notes, and snippets.

@patricksimpson
Created December 7, 2012 04:02
Show Gist options
  • Save patricksimpson/4230677 to your computer and use it in GitHub Desktop.
Save patricksimpson/4230677 to your computer and use it in GitHub Desktop.
Ultra lazy git tf push!
#!/usr/bin/expect
set username "your.name"
set password "yoursupercoolpassword"
spawn git tf pull --rebase
expect "Username:";
send "$username\n";
expect "Password:";
send "$password\n";
interact
spawn git tf checkin
expect "Username:";
send "$username\n";
expect "Password:";
send "$password\n";
interact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment