Skip to content

Instantly share code, notes, and snippets.

@cesosag
Forked from anabelle/github_update.php
Last active August 30, 2016 15:38
Show Gist options
  • Save cesosag/86ab28f104bcbba7a1ca to your computer and use it in GitHub Desktop.
Save cesosag/86ab28f104bcbba7a1ca to your computer and use it in GitHub Desktop.
<?php $output = shell_exec('git fetch --all && git reset --hard origin/master'); ?>
<style>
body{
background-color: #1A1A1A;
color:#fff;
}
pre{
padding:20px;
}
</style>
<body>
<pre><?php echo $output; ?></pre>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment