Skip to content

Commit

Permalink
September 13 22:15 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Sep 13, 2015
1 parent 9e32a5f commit 6863baa
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pull_code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import os, sys
from datetime import datetime
from sys import version_info

py3 = version_info[0]

res = raw_input("Please enter your name: ")
if(res == 'y'):
print res
else:
print "wrong"
19 changes: 19 additions & 0 deletions push_code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import os, sys
from datetime import datetime

time = datetime.now().strftime("%B %d %H:%M hours")
status = "git status"
add = 'git add .'
commit = "git commit -a -m " + "\"" + time + "\""
push = "git push -u origin master"
os.system(status)
proceed = raw_input('Proceed?')
if (proceed == 'y'):
os.system(commit)
os.system(push)
elif (proceed == 'a'):
os.system(add)
os.system(commit)
os.system(push)
else:
print "Aborting push.."

0 comments on commit 6863baa

Please sign in to comment.