Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251
), and add it to a gist
tag surrounded by {%
and %}
.
" Don't try to be vi compatible | |
set nocompatible | |
" Helps force plugins to load correctly when it is turned back on below | |
filetype off | |
" TODO: Load plugins here (pathogen or vundle) | |
" Turn on syntax highlighting | |
syntax on |
Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251
), and add it to a gist
tag surrounded by {%
and %}
.
# First, check out the commit you wish to go back to (get sha-1 from git log) | |
git reset --hard 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a | |
# Then do a forced update. | |
git push origin +9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a^:develop | |
# Push specific commit | |
git push origin 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a:develop -f |
git reset --hard | |
git clean -f -d | |
Description: | |
============ | |
Git Tips: Remove untracked files and directories from the working | |
tree when switching branches or checking out different commits. | |
Explanation: |
<!-- | |
1. Google +1 button | |
- see http://www.google.com/webmasters/+1/button/ | |
--> | |
<g:plusone size="medium"></g:plusone> | |
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script> | |
<!-- | |
2. Twitter Tweet button | |
- see http://twitter.com/about/resources/tweetbutton/ |