forked from angular/code.angularjs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitFetchSite.php
More file actions
15 lines (15 loc) · 480 Bytes
/
Copy pathgitFetchSite.php
File metadata and controls
15 lines (15 loc) · 480 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<html>
<head>
<title>Update site from: GitHub master</title>
</head>
<body>
<?php `echo ================================== >> gitFetchSite.log`; ?>
<?php `date >> gitFetchSite.log`; ?>
<pre><?php echo `date`; ?></pre>
<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>