Skip to content

Commit

Permalink
Added gitFetch.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery committed Oct 22, 2012
1 parent f77c182 commit c9886dc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -6,3 +6,4 @@ build.xml
.project
.settings
.idea/*
gitFetchSite.log
14 changes: 14 additions & 0 deletions gitFetchSite.php
@@ -0,0 +1,14 @@
<html>
<head>
<title>Update site from: GitHub master</title>
</head>
<body>
<?php `echo ================================== >> gitFetchSite.log`; ?>
<?php `date >> gitFetchSite.log`; ?>
<pre><?php echo `git fetch origin`; ?></pre>
<pre><?php echo `git checkout origin/master -f`; ?></pre>
<pre><?php echo `git status`; ?></pre>
<pre><?php echo `git log -n1`; ?></pre>
<?php `git log -n1 >> gitFetchSite.log`; ?>
</body>
</html>

0 comments on commit c9886dc

Please sign in to comment.